public void rebuild() {
        verifyAddedToSpatial("rebuild the ragdoll");

        Map<String, BoneLink> saveBones = new HashMap<>(boneLinks);
        TorsoLink saveTorso = torsoLink;

        Spatial controlledSpatial = getSpatial();
        removeSpatialData(controlledSpatial);
        createSpatialData(controlledSpatial);

        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. 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.
jme3-jbullet/src/main/java/com/jme3/bullet/animation/DacLinks.java