mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
fixing bug where collision were deactivated upon releasing the ship's wheel
This commit is contained in:
parent
700d30e9f1
commit
5926035d84
@ -611,7 +611,8 @@ class ShipPilot(PhysicsWalker):
|
||||
Activate the arrow keys, etc.
|
||||
"""
|
||||
assert self.debugPrint("enableShipControls()")
|
||||
assert self.collisionsActive
|
||||
|
||||
self.setCollisionsActive(1)
|
||||
|
||||
if __debug__:
|
||||
#self.accept("control-f3", self.spawnTest) #*#
|
||||
@ -638,6 +639,9 @@ class ShipPilot(PhysicsWalker):
|
||||
taskName = "ShipControlsIndicator%s"%(id(self),)
|
||||
taskMgr.remove(taskName)
|
||||
|
||||
if self.ship:
|
||||
self.ship.worldVelocity = Vec3(0)
|
||||
|
||||
if __debug__:
|
||||
self.ignore("control-f3") #*#
|
||||
self.ignore("f3")
|
||||
|
Loading…
x
Reference in New Issue
Block a user