mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 01:07:51 -04:00
no momentum for now
This commit is contained in:
parent
f3148f3fc0
commit
ae36ca0070
@ -781,9 +781,10 @@ class ShipPilot(PhysicsWalker.PhysicsWalker):
|
||||
|
||||
#rotMat=Mat3.rotateMatNormaxis(self.avatarNodePath.getH(), Vec3.up())
|
||||
#speed=rotMat.xform(speed)
|
||||
f = Vec3(self.__vel)
|
||||
f.normalize()
|
||||
self.momentumForce.setVector(Vec3(f*(speed.length()*0.9)))
|
||||
# The momentumForce makes it feel like we are sliding on ice -- Joe
|
||||
# f = Vec3(self.__vel)
|
||||
# f.normalize()
|
||||
# self.momentumForce.setVector(Vec3(f*(speed.length()*0.9)))
|
||||
|
||||
|
||||
if __debug__:
|
||||
|
Loading…
x
Reference in New Issue
Block a user