Browse Source

disabling auto-sail on disableAvatarControls

Josh Wilson 18 years ago
parent
commit
784d948342
1 changed files with 3 additions and 1 deletions
  1. 3 1
      direct/src/controls/ShipPilot.py

+ 3 - 1
direct/src/controls/ShipPilot.py

@@ -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)