mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 18:31:55 -04:00
adjusting turning time when ~run is enabled
This commit is contained in:
parent
711e1faaa6
commit
08fd26dbd0
@ -469,6 +469,8 @@ class ShipPilot(PhysicsWalker):
|
|||||||
goForward = False
|
goForward = False
|
||||||
slideDistance = self.__slideSpeed
|
slideDistance = self.__slideSpeed
|
||||||
rotation = self.__rotationSpeed
|
rotation = self.__rotationSpeed
|
||||||
|
if debugRunning:
|
||||||
|
rotation *= 4
|
||||||
|
|
||||||
# update pos:
|
# update pos:
|
||||||
# Take a step in the direction of our previous heading.
|
# Take a step in the direction of our previous heading.
|
||||||
@ -595,7 +597,7 @@ class ShipPilot(PhysicsWalker):
|
|||||||
assert self.debugPrint("enableShipControls()")
|
assert self.debugPrint("enableShipControls()")
|
||||||
|
|
||||||
self.setCollisionsActive(1)
|
self.setCollisionsActive(1)
|
||||||
|
|
||||||
if __debug__:
|
if __debug__:
|
||||||
#self.accept("control-f3", self.spawnTest) #*#
|
#self.accept("control-f3", self.spawnTest) #*#
|
||||||
self.accept("f3", self.reset) # for debugging only.
|
self.accept("f3", self.reset) # for debugging only.
|
||||||
@ -615,7 +617,7 @@ class ShipPilot(PhysicsWalker):
|
|||||||
Ignore the arrow keys, etc.
|
Ignore the arrow keys, etc.
|
||||||
"""
|
"""
|
||||||
base.controlForce.setVector(Vec3(0))
|
base.controlForce.setVector(Vec3(0))
|
||||||
|
|
||||||
assert self.debugPrint("disableShipControls()")
|
assert self.debugPrint("disableShipControls()")
|
||||||
taskName = "ShipControls-%s"%(id(self),)
|
taskName = "ShipControls-%s"%(id(self),)
|
||||||
taskMgr.remove(taskName)
|
taskMgr.remove(taskName)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user