public void removeIKTarget(Bone bone) {
        int depth = ikChainDepth.remove(bone.getName());
        int i = 0;
        while (i < depth+2 && bone.getParent() != null) {
            if (bone.hasUserControl()) {
//                matchPhysicObjectToBone(boneLinks.get(bone.getName()), position, tmpRot1);
                bone.setUserControl(false);
            }
            bone = bone.getParent();
            i++;
        }
    }
Remove the inverse-kinematics target for the specified bone.

@param bone which bone has the target (not null, modified)
jme3-jbullet/src/main/java/com/jme3/bullet/control/KinematicRagdollControl.java