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