Explorar o código

removed reference to get local vector

Dave Schuyler %!s(int64=20) %!d(string=hai) anos
pai
achega
d466dddac1
Modificáronse 2 ficheiros con 8 adicións e 7 borrados
  1. 2 2
      direct/src/controls/ShipPilot.py
  2. 6 5
      direct/src/controls/ShipPilot2.py

+ 2 - 2
direct/src/controls/ShipPilot.py

@@ -578,8 +578,8 @@ class ShipPilot(PhysicsWalker):
             onScreenDebug.add("w momentumForce len",
                 "% 10.4f"%momentumForce.length())
 
-        if 1:
-            keel = self.keel.getLocalVector()
+        if 0:
+            keel = self.keel.getHpr()
             onScreenDebug.add("w keel vec",
                 keel.pPrintValues())
         if 0:

+ 6 - 5
direct/src/controls/ShipPilot2.py

@@ -26,7 +26,8 @@ from PhysicsWalker import PhysicsWalker
 class ShipPilot2(PhysicsWalker):
 
     notify = directNotify.newCategory("PhysicsWalker")
-    wantDebugIndicator = base.config.GetBool('want-avatar-physics-indicator', 0)
+    wantDebugIndicator = base.config.GetBool(
+        'want-avatar-physics-indicator', 0)
     
     useBowSternSpheres = 0
     useLifter = 0
@@ -627,10 +628,10 @@ class ShipPilot2(PhysicsWalker):
             onScreenDebug.add("w momentumForce len",
                 "% 10.4f"%momentumForce.length())
 
-        if 1:
-            keel = self.keel.getLocalVector()
-            onScreenDebug.add("w keel vec",
-                keel.pPrintValues())
+        ## if 1:
+            ## keel = self.keel.getLocalVector()
+            ## onScreenDebug.add("w keel vec",
+            ##    keel.pPrintValues())
         if 0:
             onScreenDebug.add("posDelta4", 
                 self.priorParentNp.getRelativeVector(