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

Loading…
Cancel
Save