From 666a800ecdfb6165938bc6a15148b5525f09d42f Mon Sep 17 00:00:00 2001 From: "nor..67" Date: Mon, 11 Apr 2011 12:31:33 +0000 Subject: [PATCH] - set kinematic mode to ragdoll parts when control is disabled git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7228 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- engine/src/jbullet/com/jme3/bullet/control/RagdollControl.java | 1 + 1 file changed, 1 insertion(+) diff --git a/engine/src/jbullet/com/jme3/bullet/control/RagdollControl.java b/engine/src/jbullet/com/jme3/bullet/control/RagdollControl.java index 629bfb488..832111674 100644 --- a/engine/src/jbullet/com/jme3/bullet/control/RagdollControl.java +++ b/engine/src/jbullet/com/jme3/bullet/control/RagdollControl.java @@ -530,6 +530,7 @@ public class RagdollControl implements PhysicsControl, PhysicsCollisionListener this.control = control; for (PhysicsBoneLink link : boneLinks.values()) { link.bone.setUserControl(control); + link.rigidBody.setKinematic(!control); } }