- Remove the reversed controls

This commit is contained in:
Jason Yeung 2007-01-03 02:06:00 +00:00
parent ca15a288a6
commit 7896127dfd
1 changed files with 3 additions and 3 deletions

View File

@ -199,7 +199,7 @@ class ShipPilot2(PhysicsWalker):
self.pusher = PhysicsCollisionHandler()
self.pusher.setInPattern("enter%in")
self.pusher.setOutPattern("exit%in")
#self.pusher.addCollider(self.cSphereNodePath, self.avatarNodePath)
if self.useBowSternSpheres:
@ -622,8 +622,8 @@ class ShipPilot2(PhysicsWalker):
self.sailsDeployed = -1.0
self.__speed = self.ship.acceleration * self.sailsDeployed
else:
self.__speed=(forward and -self.ship.acceleration) or \
(reverse and self.ship.reverseAcceleration)
self.__speed=(forward and self.ship.acceleration) or \
(reverse and -self.ship.reverseAcceleration)
#self.__speed=(forward and min(dt*(self.__speed + self.ship.acceleration), self.ship.maxSpeed) or
# reverse and min(dt*(self.__speed - self.ship.reverseAcceleration), self.ship.maxReverseSpeed))