mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
changed attach physics node
This commit is contained in:
parent
ddf42d32d5
commit
5db5a14521
@ -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")
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user