Browse Source

ragdoll cleaning

shuvit 7 months ago
parent
commit
62353c5381
1 changed files with 0 additions and 6 deletions
  1. 0
    6
      scripts/ragdoll.py

+ 0
- 6
scripts/ragdoll.py View File

@@ -1,5 +1,4 @@
1 1
 import bge
2
-#from mathutils import Vector
3 2
 from math import radians
4 3
 from mathutils import Quaternion, Vector, Matrix
5 4
 
@@ -23,7 +22,6 @@ def zero_constraints(own, scene):
23 22
 
24 23
     
25 24
 def update_rb(physBody, scene):
26
-    #print('updating rigid body positions')
27 25
     armature = scene.objects['Char4']
28 26
     master = armature.parent
29 27
     master = scene.objects['control_cube.002']
@@ -44,11 +42,8 @@ def max_constraints(own, scene, physBody):
44 42
     if armature.parent != None:
45 43
         master = armature.parent
46 44
         if not armature.parent.isSuspendDynamics:
47
-            #armature.parent.suspendDynamics(True)        
48 45
             pass
49 46
     armature.removeParent()
50
-    #print(armature.parent)
51
-    #print(physBody.groupMembers)
52 47
     physBody.restoreDynamics()
53 48
     for pB in physBody.groupMembers:
54 49
         pB.restoreDynamics()
@@ -74,7 +69,6 @@ def max_constraints(own, scene, physBody):
74 69
     
75 70
     
76 71
 def main():
77
-    #print('doing main')
78 72
     cont = bge.logic.getCurrentController()
79 73
     own = cont.owner
80 74
     scene = bge.logic.getCurrentScene()

Loading…
Cancel
Save