MinieLibrary/src/main/java/com/jme3/bullet/BulletAppState.java
/**
     * Allocate the PhysicsSpace and start simulating physics using
     * ThreadingType.PARALLEL.
     *
     * @return true if successful, otherwise false
     */
Allocate the PhysicsSpace and start simulating physics using
ThreadingType.PARALLEL.

@return true if successful, otherwise false
Allocate the PhysicsSpace and start simulating physics using ThreadingType . PARALLEL . @return true if successful otherwise false
protected boolean startPhysicsOnExecutor() {
        if (executor != null) {
            executor.shutdown();
        }
        executor = new ScheduledThreadPoolExecutor(1);
        final BulletAppState appState = this;
        Callable<Boolean> call = new Callable<Boolean>() {
            @Override
            public Boolean call() throws Exception {
                PhysicsSpace pSpace = createPhysicsSpace(worldMin, worldMax,
                        broadphaseType);
                debugConfig.setSpace(pSpace);
                pSpace.addTickListener(appState);
                return true;
            }
        };
        try {
            return executor.submit(call).get();
        } catch (InterruptedException | ExecutionException exception) {
            logger.log(Level.SEVERE, null, exception);
            return false;
        }
    }
protected boolean startPhysicsOnExecutor ( ) { if ( executor != null ) { executor . shutdown ( ) ; } executor = new ScheduledThreadPoolExecutor ( 1 ) ; final BulletAppState appState = this ; Callable < Boolean > call = new Callable < Boolean > ( ) { @ Override public Boolean call ( ) throws Exception { PhysicsSpace pSpace = createPhysicsSpace ( worldMin , worldMax , broadphaseType ) ; debugConfig . setSpace ( pSpace ) ; pSpace . addTickListener ( appState ) ; return true ; } } ; try { return executor . submit ( call ) . get ( ) ; } catch ( InterruptedException | ExecutionException exception ) { logger . log ( Level . SEVERE , null , exception ) ; return false ; } }
Allocate the PhysicsSpace and start simulating physics using
 ThreadingType.PARALLEL.
Allocate the PhysicsSpace and start simulating physics using ThreadingType . PARALLEL .