mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-18 20:53:50 -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.
|
Ignore the arrow keys, etc.
|
||||||
"""
|
"""
|
||||||
|
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)
|
||||||
|
|
||||||
taskName = "ShipControlsIndicator%s"%(id(self),)
|
taskName = "ShipControlsIndicator%s"%(id(self),)
|
||||||
taskMgr.remove(taskName)
|
taskMgr.remove(taskName)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user