Răsfoiți Sursa

- Player ship rocking on turns

Jason Yeung 20 ani în urmă
părinte
comite
3b064600a0
1 a modificat fișierele cu 7 adăugiri și 1 ștergeri
  1. 7 1
      direct/src/controls/ShipPilot.py

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

@@ -611,7 +611,7 @@ class ShipPilot(PhysicsWalker.PhysicsWalker):
         jump = inputState.isSet("jump")
         jump = inputState.isSet("jump")
         # Determine what the speeds are based on the buttons:
         # Determine what the speeds are based on the buttons:
         
         
-        if 0:
+        if 1:
             if not hasattr(self, "sailsDeployed"):
             if not hasattr(self, "sailsDeployed"):
                 self.sailsDeployed = 0.0
                 self.sailsDeployed = 0.0
             if forward and reverse:
             if forward and reverse:
@@ -884,7 +884,13 @@ class ShipPilot(PhysicsWalker.PhysicsWalker):
                 self.ship.worldVelocity.pPrintValues())
                 self.ship.worldVelocity.pPrintValues())
             onScreenDebug.add("w worldVelocity len",
             onScreenDebug.add("w worldVelocity len",
                 "% 10.4f"%self.ship.worldVelocity.length())
                 "% 10.4f"%self.ship.worldVelocity.length())
+            
+        # if hasattr(self.ship, 'sailBillow'):
+        #     self.ship.sailBillow = self.sailsDeployed
 
 
+        if hasattr(self.ship, 'currentTurning'):
+            self.ship.currentTurning = self.currentTurning
+        
         return Task.cont
         return Task.cont
     
     
     def doDeltaPos(self):
     def doDeltaPos(self):