shuvit 6 years ago
parent
commit
4636697170
1 changed files with 6 additions and 10 deletions
  1. 6
    10
      controller2.py

+ 6
- 10
controller2.py View File

@@ -3990,19 +3990,15 @@ def main():
3990 3990
             own['air_mover'] = False 
3991 3991
             
3992 3992
     def dropinRotate():
3993
-        if own['dropinTimer'] > 35 and own['dropinTimer'] < 45:
3994
-            # rotate the game object 1.570796327 radians (90 degrees) 
3993
+        if own['dropinTimer'] > 30 and own['dropinTimer'] < 40:
3995 3994
             rot = [ 0.01, 0.0, 0]
3996
-            # use the world axis
3997 3995
             local = True
3998
-            # apply rotation
3999 3996
             own.applyRotation(rot,local)
4000
-            print('dropin rotate')
4001
-        if own['dropinTimer'] == 45:
4002
-            #linVelocity = own.getlinearVelocity
4003
-            force = (linVelocity.x -1, linVelocity.y, linVelocity.z)
4004
-            own.setLinearVelocity(force, True)
4005
-            print('dropin vel')                
3997
+            force = (linVelocity.x - .25, linVelocity.y, linVelocity.z - .01 )
3998
+            own.setLinearVelocity(force, local)            
3999
+        if own['dropinTimer'] == 50:
4000
+            force = (linVelocity.x -1, linVelocity.y, linVelocity.z )
4001
+            own.setLinearVelocity(force, True)               
4006 4002
 
4007 4003
     framenum = own['framenum']
4008 4004
     last_ground_frame = own['lF_ground_frame']

Loading…
Cancel
Save