- merge changes to native bullet

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8144 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
nor..67 13 years ago
parent 93326d1285
commit 31e151fec1
  1. 4
      engine/src/bullet/com/jme3/bullet/control/KinematicRagdollControl.java

@ -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()) {

Loading…
Cancel
Save