From 08fd26dbd07302588fb5e9c6d2c4e2f255e2c021 Mon Sep 17 00:00:00 2001 From: Josh Wilson Date: Sat, 10 Nov 2007 01:11:29 +0000 Subject: [PATCH] adjusting turning time when ~run is enabled --- direct/src/controls/ShipPilot.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/direct/src/controls/ShipPilot.py b/direct/src/controls/ShipPilot.py index 33f1f1eb60..524a9bb25b 100755 --- a/direct/src/controls/ShipPilot.py +++ b/direct/src/controls/ShipPilot.py @@ -469,6 +469,8 @@ class ShipPilot(PhysicsWalker): goForward = False slideDistance = self.__slideSpeed rotation = self.__rotationSpeed + if debugRunning: + rotation *= 4 # update pos: # Take a step in the direction of our previous heading. @@ -595,7 +597,7 @@ class ShipPilot(PhysicsWalker): assert self.debugPrint("enableShipControls()") self.setCollisionsActive(1) - + if __debug__: #self.accept("control-f3", self.spawnTest) #*# self.accept("f3", self.reset) # for debugging only. @@ -615,7 +617,7 @@ class ShipPilot(PhysicsWalker): Ignore the arrow keys, etc. """ base.controlForce.setVector(Vec3(0)) - + assert self.debugPrint("disableShipControls()") taskName = "ShipControls-%s"%(id(self),) taskMgr.remove(taskName)