mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-17 20:23:47 -04:00
disabling auto-sail on disableAvatarControls
This commit is contained in:
parent
9143737a1b
commit
784d948342
@ -610,10 +610,12 @@ 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)
|
||||
|
||||
|
||||
taskName = "ShipControlsIndicator%s"%(id(self),)
|
||||
taskMgr.remove(taskName)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user