mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 18:03:56 -04:00
uncommented angular physics
This commit is contained in:
parent
f110517ef6
commit
44aa13cb4c
@ -233,7 +233,7 @@ class ShipPilot(PhysicsWalker.PhysicsWalker):
|
||||
#fnp.reparentTo(physicsActor)
|
||||
fnp.reparentTo(render)
|
||||
self.nodes.append(fnp)
|
||||
self.keel=AngularVectorForce(0.0, 0.0, 80.0)
|
||||
self.keel=AngularVectorForce(0.0, 0.0, 0.0)
|
||||
fn.addForce(self.keel)
|
||||
self.phys.addAngularForce(self.keel)
|
||||
|
||||
@ -259,7 +259,7 @@ class ShipPilot(PhysicsWalker.PhysicsWalker):
|
||||
self.phys.addLinearForce(self.avatarViscosity)
|
||||
|
||||
self.phys.attachLinearIntegrator(LinearEulerIntegrator())
|
||||
#*#self.phys.attachAngularIntegrator(AngularEulerIntegrator())
|
||||
self.phys.attachAngularIntegrator(AngularEulerIntegrator())
|
||||
self.phys.attachPhysicalnode(physicsActor.node())
|
||||
|
||||
self.momentumForce=LinearVectorForce(0.0, 0.0, 0.0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user