MinieLibrary/src/main/java/com/jme3/bullet/animation/RagUtils.java
/**
     * Convert a Transform from the mesh coordinate system to the local
     * coordinate system of the specified armature joint.
     *
     * @param parent (not null)
     * @param transform the transform to convert (not null, modified)
     */
Convert a Transform from the mesh coordinate system to the local
coordinate system of the specified armature joint.

@param parent (not null)
@param transform the transform to convert (not null, modified)
Convert a Transform from the mesh coordinate system to the local coordinate system of the specified armature joint . @param parent ( not null ) @param transform the transform to convert ( not null modified )
static void meshToLocal(Joint parent, Transform transform) {
        Vector3f location = transform.getTranslation();
        Quaternion orientation = transform.getRotation();
        Vector3f scale = transform.getScale();
        Transform pm = parent.getModelTransform();
        Vector3f pmTranslate = pm.getTranslation();
        Quaternion pmRotInv = pm.getRotation().inverse();
        Vector3f pmScale = pm.getScale();
        location.subtractLocal(pmTranslate);
        location.divideLocal(pmScale);
        pmRotInv.mult(location, location);
        scale.divideLocal(pmScale);
        pmRotInv.mult(orientation, orientation);
    }
static void meshToLocal ( Joint parent , Transform transform ) { Vector3f location = transform . getTranslation ( ) ; Quaternion orientation = transform . getRotation ( ) ; Vector3f scale = transform . getScale ( ) ; Transform pm = parent . getModelTransform ( ) ; Vector3f pmTranslate = pm . getTranslation ( ) ; Quaternion pmRotInv = pm . getRotation ( ) . inverse ( ) ; Vector3f pmScale = pm . getScale ( ) ; location . subtractLocal ( pmTranslate ) ; location . divideLocal ( pmScale ) ; pmRotInv . mult ( location , location ) ; scale . divideLocal ( pmScale ) ; pmRotInv . mult ( orientation , orientation ) ; }
Convert a Transform from the mesh coordinate system to the local
 coordinate system of the specified armature joint.
Convert a Transform from the mesh coordinate system to the local coordinate system of the specified armature joint .