|
|
|
@ -660,7 +660,7 @@ public class KinematicRagdollControl implements PhysicsControl, PhysicsCollision |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
//dispatching the event if the ragdoll has been hit
|
|
|
|
|
if (hit) { |
|
|
|
|
if (hit && listeners != null) { |
|
|
|
|
for (RagdollCollisionListener listener : listeners) { |
|
|
|
|
listener.collide(hitBone, hitObject, event); |
|
|
|
|
} |
|
|
|
@ -682,6 +682,7 @@ public class KinematicRagdollControl implements PhysicsControl, PhysicsCollision |
|
|
|
|
|
|
|
|
|
baseRigidBody.setKinematic(mode == Mode.Kinetmatic); |
|
|
|
|
TempVars vars = TempVars.get(); |
|
|
|
|
|
|
|
|
|
for (PhysicsBoneLink link : boneLinks.values()) { |
|
|
|
|
link.rigidBody.setKinematic(mode == Mode.Kinetmatic); |
|
|
|
|
if (mode == Mode.Ragdoll) { |
|
|
|
@ -715,7 +716,6 @@ public class KinematicRagdollControl implements PhysicsControl, PhysicsCollision |
|
|
|
|
animControl.setEnabled(true); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
TempVars vars = TempVars.get(); |
|
|
|
|
for (PhysicsBoneLink link : boneLinks.values()) { |
|
|
|
|
|
|
|
|
|