changed attach physics node

This commit is contained in:
Dave Schuyler 2006-03-09 22:53:37 +00:00
parent ddf42d32d5
commit 5db5a14521
4 changed files with 6 additions and 6 deletions

View File

@ -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")

View File

@ -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)

View File

@ -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)

View File

@ -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)