MinieLibrary/src/main/java/com/jme3/bullet/BulletAppState.java
/**
     * Transition this state from detached to initializing. Should be invoked
     * only by a subclass or by the AppStateManager.
     *
     * @param stateManager (not null)
     */
Transition this state from detached to initializing. Should be invoked
only by a subclass or by the AppStateManager.

@param stateManager (not null)
Transition this state from detached to initializing . Should be invoked only by a subclass or by the AppStateManager . @param stateManager ( not null )
@Override
    public void stateAttached(AppStateManager stateManager) {
        super.stateAttached(stateManager);
        this.stateManager = stateManager;
        if (!isRunning) {
            startPhysics();
        }
        if (threadingType == ThreadingType.PARALLEL) {
            PhysicsSpace pSpace = debugConfig.getSpace();
            PhysicsSpace.setLocalThreadPhysicsSpace(pSpace);
        }
    }
@ Override public void stateAttached ( AppStateManager stateManager ) { super . stateAttached ( stateManager ) ; this . stateManager = stateManager ; if ( ! isRunning ) { startPhysics ( ) ; } if ( threadingType == ThreadingType . PARALLEL ) { PhysicsSpace pSpace = debugConfig . getSpace ( ) ; PhysicsSpace . setLocalThreadPhysicsSpace ( pSpace ) ; } }
Transition this state from detached to initializing.
Transition this state from detached to initializing .