MinieLibrary/src/main/java/com/jme3/bullet/animation/DacLinks.java
/**
     * Rebuild the ragdoll. This is useful if you applied scale to the model
     * after it was initialized.
     * <p>
     * Allowed only when the control IS added to a spatial.
     */
Rebuild the ragdoll. This is useful if you applied scale to the model
after it was initialized.

Allowed only when the control IS added to a spatial.
Rebuild the ragdoll . This is useful if you applied scale to the model after it was initialized . Allowed only when the control IS added to a spatial .
public void rebuild() {
        verifyAddedToSpatial("rebuild the ragdoll");
        Map<String, AttachmentLink> saveAttach = new HashMap<>(attachmentLinks);
        Map<String, BoneLink> saveBones = new HashMap<>(boneLinks);
        TorsoLink saveTorso = torsoLink;
        Spatial controlledSpatial = getSpatial();
        removeSpatialData(controlledSpatial);
        createSpatialData(controlledSpatial);
        for (Map.Entry<String, AttachmentLink> entry
                : attachmentLinks.entrySet()) {
            String name = entry.getKey();
            AttachmentLink newLink = entry.getValue();
            AttachmentLink oldLink = saveAttach.get(name);
            newLink.postRebuild(oldLink);
        }
        for (Map.Entry<String, BoneLink> entry : boneLinks.entrySet()) {
            String name = entry.getKey();
            BoneLink newLink = entry.getValue();
            BoneLink oldLink = saveBones.get(name);
            newLink.postRebuild(oldLink);
        }
        if (torsoLink != null) {
            torsoLink.postRebuild(saveTorso);
        }
    }
public void rebuild ( ) { verifyAddedToSpatial ( "rebuild the ragdoll" ) ; Map < String , AttachmentLink > saveAttach = new HashMap < > ( attachmentLinks ) ; Map < String , BoneLink > saveBones = new HashMap < > ( boneLinks ) ; TorsoLink saveTorso = torsoLink ; Spatial controlledSpatial = getSpatial ( ) ; removeSpatialData ( controlledSpatial ) ; createSpatialData ( controlledSpatial ) ; for ( Map . Entry < String , AttachmentLink > entry : attachmentLinks . entrySet ( ) ) { String name = entry . getKey ( ) ; AttachmentLink newLink = entry . getValue ( ) ; AttachmentLink oldLink = saveAttach . get ( name ) ; newLink . postRebuild ( oldLink ) ; } for ( Map . Entry < String , BoneLink > entry : boneLinks . entrySet ( ) ) { String name = entry . getKey ( ) ; BoneLink newLink = entry . getValue ( ) ; BoneLink oldLink = saveBones . get ( name ) ; newLink . postRebuild ( oldLink ) ; } if ( torsoLink != null ) { torsoLink . postRebuild ( saveTorso ) ; } }
Rebuild the ragdoll.
Rebuild the ragdoll .