Browse Source

changed attach physics node

Dave Schuyler 20 years ago
parent
commit
5db5a14521

+ 1 - 1
direct/src/controls/PhysicsWalker.py

@@ -251,7 +251,7 @@ class PhysicsWalker(DirectObject.DirectObject):
         self.phys.addLinearForce(self.avatarViscosity)
 
         self.phys.attachLinearIntegrator(LinearEulerIntegrator())
-        self.phys.attachPhysicalnode(physicsActor.node())
+        self.phys.attachPhysicalNode(physicsActor.node())
 
         self.acForce=LinearVectorForce(0.0, 0.0, 0.0)
         fn=ForceNode("avatarControls")

+ 1 - 1
direct/src/controls/ShipPilot.py

@@ -324,7 +324,7 @@ class ShipPilot(PhysicsWalker):
 
         self.phys.attachLinearIntegrator(LinearEulerIntegrator())
         self.phys.attachAngularIntegrator(AngularEulerIntegrator())
-        self.phys.attachPhysicalnode(physicsActor.node())
+        self.phys.attachPhysicalNode(physicsActor.node())
 
         if 0:
             self.momentumForce=LinearVectorForce(0.0, 0.0, 0.0)

+ 2 - 2
direct/src/physics/FallTest.py

@@ -50,8 +50,8 @@ class FallTest(NodePath):
             self.phys.attachLinearIntegrator(LinearEulerIntegrator())
         if 0:
             self.phys.attachAngularIntegrator(AngularEulerIntegrator())
-        #self.phys.attachPhysicalnode(self.node())
-        self.phys.attachPhysicalnode(self.actorNode)
+        #self.phys.attachPhysicalNode(self.node())
+        self.phys.attachPhysicalNode(self.actorNode)
 
         if 0:
             self.momentumForce=LinearVectorForce(0.0, 0.0, 0.0)

+ 2 - 2
direct/src/physics/RotationTest.py

@@ -60,8 +60,8 @@ class RotationTest(NodePath):
             self.phys.attachLinearIntegrator(LinearEulerIntegrator())
         if 0:
             self.phys.attachAngularIntegrator(AngularEulerIntegrator())
-        #self.phys.attachPhysicalnode(self.node())
-        self.phys.attachPhysicalnode(self.actorNode)
+        #self.phys.attachPhysicalNode(self.node())
+        self.phys.attachPhysicalNode(self.actorNode)
 
         if 0:
             self.momentumForce=LinearVectorForce(0.0, 0.0, 0.0)