shuvit 6 年前
父节点
当前提交
4636697170
共有 1 个文件被更改,包括 6 次插入10 次删除
  1. 6
    10
      controller2.py

+ 6
- 10
controller2.py 查看文件

3990
             own['air_mover'] = False 
3990
             own['air_mover'] = False 
3991
             
3991
             
3992
     def dropinRotate():
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
             rot = [ 0.01, 0.0, 0]
3994
             rot = [ 0.01, 0.0, 0]
3996
-            # use the world axis
3997
             local = True
3995
             local = True
3998
-            # apply rotation
3999
             own.applyRotation(rot,local)
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
     framenum = own['framenum']
4003
     framenum = own['framenum']
4008
     last_ground_frame = own['lF_ground_frame']
4004
     last_ground_frame = own['lF_ground_frame']

正在加载...
取消
保存