MinieLibrary/src/main/java/com/jme3/bullet/PhysicsSpace.java
/**
     * Remove all physics controls in the specified subtree of the scene graph
     * from this space (e.g. before saving to disk). For compatibility with the
     * jme3-bullet library.
     * <p>
     * Does not remove any joints.
     * <p>
     * Note: recursive!
     *
     * @param spatial the root of the subtree (not null)
     */
Remove all physics controls in the specified subtree of the scene graph
from this space . For compatibility with the
jme3-bullet library.

Does not remove any joints.

Note: recursive!

@param spatial the root of the subtree (not null)
Remove all physics controls in the specified subtree of the scene graph from this space . For compatibility with the jme3 - bullet library . Does not remove any joints . Note : recursive! @param spatial the root of the subtree ( not null )
public void removeAll(Spatial spatial) {
        remove(spatial);
        if (spatial instanceof Node) {
            List<Spatial> children = ((Node) spatial).getChildren();
            for (Spatial child : children) {
                removeAll(child);
            }
        }
    }
public void removeAll ( Spatial spatial ) { remove ( spatial ) ; if ( spatial instanceof Node ) { List < Spatial > children = ( ( Node ) spatial ) . getChildren ( ) ; for ( Spatial child : children ) { removeAll ( child ) ; } } }
Remove all physics controls in the specified subtree of the scene graph
 from this space (e.g.
Remove all physics controls in the specified subtree of the scene graph from this space ( e . g .
//recursion