MinieLibrary/src/main/java/com/jme3/bullet/BulletAppState.java
/**
     * Create the configured PhysicsSpace.
     *
     * @param min the minimum coordinate values (not null, unaffected)
     * @param max the maximum coordinate values (not null, unaffected)
     * @param type the broadphase collision-detection algorithm (not null)
     * @return a new instance (not null)
     */
Create the configured PhysicsSpace.
@param min the minimum coordinate values (not null, unaffected)
@param max the maximum coordinate values (not null, unaffected)
@param type the broadphase collision-detection algorithm (not null)
@return a new instance (not null)
Create the configured PhysicsSpace . @param min the minimum coordinate values ( not null unaffected ) @param max the maximum coordinate values ( not null unaffected ) @param type the broadphase collision - detection algorithm ( not null ) @return a new instance ( not null )
protected PhysicsSpace createPhysicsSpace(Vector3f min, Vector3f max,
            BroadphaseType type) {
        if (solverType == SolverType.SI) {
            return new PhysicsSpace(min, max, type, numSolvers);
        } else if (numSolvers == 1) {
            return new PhysicsSpace(min, max, type, solverType);
        } else {
            String message
                    = String.format("num=%d, type=%s", numSolvers, solverType);
            throw new IllegalArgumentException(message);
        }
    }
protected PhysicsSpace createPhysicsSpace ( Vector3f min , Vector3f max , BroadphaseType type ) { if ( solverType == SolverType . SI ) { return new PhysicsSpace ( min , max , type , numSolvers ) ; } else if ( numSolvers == 1 ) { return new PhysicsSpace ( min , max , type , solverType ) ; } else { String message = String . format ( "num=%d, type=%s" , numSolvers , solverType ) ; throw new IllegalArgumentException ( message ) ; } }
Create the configured PhysicsSpace.
Create the configured PhysicsSpace .