shuvit 5 years ago
parent
commit
7ba51d7350
1 changed files with 4 additions and 2 deletions
  1. 4
    2
      scripts/walk.py

+ 4
- 2
scripts/walk.py View File

652
                 cam.worldPosition = (spawn_cam_pos[0], spawn_cam_pos[1], (spawn_cam_pos[2]))
652
                 cam.worldPosition = (spawn_cam_pos[0], spawn_cam_pos[1], (spawn_cam_pos[2]))
653
                 cam.worldOrientation = [[spawn_cam_rot[0][0],spawn_cam_rot[0][1],spawn_cam_rot[0][2]], [spawn_cam_rot[1][0],spawn_cam_rot[1][1],spawn_cam_rot[1][2]], [0.0, 0.0, 1.0]]            
653
                 cam.worldOrientation = [[spawn_cam_rot[0][0],spawn_cam_rot[0][1],spawn_cam_rot[0][2]], [spawn_cam_rot[1][0],spawn_cam_rot[1][1],spawn_cam_rot[1][2]], [0.0, 0.0, 1.0]]            
654
             except:    
654
             except:    
655
-                own.worldPosition = (0, 0, .1)
655
+                own.worldPosition = (5, 2, .1)
656
                 own.worldOrientation = [[1.0, 0.0, 0.0], [ 0.0, 1.0, 0.0], [0.0, 0.0, 1.0]] 
656
                 own.worldOrientation = [[1.0, 0.0, 0.0], [ 0.0, 1.0, 0.0], [0.0, 0.0, 1.0]] 
657
             own['stance'] = own['spawn_stance']                          
657
             own['stance'] = own['spawn_stance']                          
658
             if own["spawn_stance"] == 1:
658
             if own["spawn_stance"] == 1:
677
         wheel2act = wheel2.actuators["Visibility"]
677
         wheel2act = wheel2.actuators["Visibility"]
678
         wheel3act = wheel3.actuators["Visibility"]
678
         wheel3act = wheel3.actuators["Visibility"]
679
         wheel4act = wheel4.actuators["Visibility"]
679
         wheel4act = wheel4.actuators["Visibility"]
680
-                
680
+        print('doing falldeck')        
681
         if own['throw_deck'] == False:
681
         if own['throw_deck'] == False:
682
             own['throw_deck'] = True
682
             own['throw_deck'] = True
683
             deckact.visibility = False
683
             deckact.visibility = False
692
             if STANCE == False:
692
             if STANCE == False:
693
                 act.linearVelocity = [0.0, 1.0, -1.0]  
693
                 act.linearVelocity = [0.0, 1.0, -1.0]  
694
             cont.activate(act)
694
             cont.activate(act)
695
+            print('running falldeck()')
695
         else:
696
         else:
696
             own['throw_deck'] = False    
697
             own['throw_deck'] = False    
697
             deckact.visibility = True
698
             deckact.visibility = True
798
                 #own.setLinearVelocity([-3,-2,0], True)    
799
                 #own.setLinearVelocity([-3,-2,0], True)    
799
             own['fall'] = False
800
             own['fall'] = False
800
             own.worldPosition.z += .3
801
             own.worldPosition.z += .3
802
+            print('falling from walk.py')
801
 
803
 
802
     def sit():
804
     def sit():
803
         #turn off sit
805
         #turn off sit

Loading…
Cancel
Save