mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -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())
|
#rotMat=Mat3.rotateMatNormaxis(self.avatarNodePath.getH(), Vec3.up())
|
||||||
#speed=rotMat.xform(speed)
|
#speed=rotMat.xform(speed)
|
||||||
f = Vec3(self.__vel)
|
# The momentumForce makes it feel like we are sliding on ice -- Joe
|
||||||
f.normalize()
|
# f = Vec3(self.__vel)
|
||||||
self.momentumForce.setVector(Vec3(f*(speed.length()*0.9)))
|
# f.normalize()
|
||||||
|
# self.momentumForce.setVector(Vec3(f*(speed.length()*0.9)))
|
||||||
|
|
||||||
|
|
||||||
if __debug__:
|
if __debug__:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user