Browse Source

clear physics node

Dave Schuyler 20 years ago
parent
commit
0f2a0eb759
1 changed files with 10 additions and 0 deletions
  1. 10 0
      panda/src/physics/linearControlForce.I

+ 10 - 0
panda/src/physics/linearControlForce.I

@@ -16,6 +16,16 @@
 //
 ////////////////////////////////////////////////////////////////////
 
+////////////////////////////////////////////////////////////////////
+//    Function : clear_physics_object
+//      Access : Public
+// Description : encapsulating wrapper
+////////////////////////////////////////////////////////////////////
+INLINE void LinearControlForce::
+clear_physics_object() {
+  _physics_object = (const PhysicsObject*)NULL;
+}
+
 ////////////////////////////////////////////////////////////////////
 //    Function : set_physics_object
 //      Access : Public