MinieLibrary/src/main/java/com/jme3/bullet/animation/DacLinks.java
/**
     * Remove all managed physics objects from the PhysicsSpace.
     */
Remove all managed physics objects from the PhysicsSpace.
Remove all managed physics objects from the PhysicsSpace .
@Override
    protected void removePhysics() {
        assert added;
        PhysicsSpace space = getPhysicsSpace();
        PhysicsRigidBody rigidBody;
        if (torsoLink != null) {
            rigidBody = torsoLink.getRigidBody();
            space.removeCollisionObject(rigidBody);
        }
        for (BoneLink boneLink : boneLinks.values()) {
            rigidBody = boneLink.getRigidBody();
            space.removeCollisionObject(rigidBody);
            PhysicsJoint joint = boneLink.getJoint();
            space.removeJoint(joint);
        }
        for (AttachmentLink link : attachmentLinks.values()) {
            if (!link.isReleased()) {
                rigidBody = link.getRigidBody();
                space.removeCollisionObject(rigidBody);
                PhysicsJoint joint = link.getJoint();
                space.removeJoint(joint);
            }
        }
    }
@ Override protected void removePhysics ( ) { assert added ; PhysicsSpace space = getPhysicsSpace ( ) ; PhysicsRigidBody rigidBody ; if ( torsoLink != null ) { rigidBody = torsoLink . getRigidBody ( ) ; space . removeCollisionObject ( rigidBody ) ; } for ( BoneLink boneLink : boneLinks . values ( ) ) { rigidBody = boneLink . getRigidBody ( ) ; space . removeCollisionObject ( rigidBody ) ; PhysicsJoint joint = boneLink . getJoint ( ) ; space . removeJoint ( joint ) ; } for ( AttachmentLink link : attachmentLinks . values ( ) ) { if ( ! link . isReleased ( ) ) { rigidBody = link . getRigidBody ( ) ; space . removeCollisionObject ( rigidBody ) ; PhysicsJoint joint = link . getJoint ( ) ; space . removeJoint ( joint ) ; } } }
Remove all managed physics objects from the PhysicsSpace.
Remove all managed physics objects from the PhysicsSpace .