no momentum for now

This commit is contained in:
Joe Shochet 2004-08-19 22:23:41 +00:00
parent f3148f3fc0
commit ae36ca0070

View File

@ -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__: