MinieExamples/src/main/java/jme3utilities/minie/test/issue/TestIssue18.java
/**
     * Add a ground body to the specified PhysicsSpace.
     *
     * @param physicsSpace (not null)
     */
Add a ground body to the specified PhysicsSpace.

@param physicsSpace (not null)
Add a ground body to the specified PhysicsSpace . @param physicsSpace ( not null )
private void addGround(PhysicsSpace physicsSpace) {
        Mesh quad = new Quad(1000f, 1000f);
        Spatial ground = new Geometry("ground", quad);
        ground.move(-500f, 0f, 500f);
        ground.rotate(-FastMath.HALF_PI, 0f, 0f);
        CollisionShape shape = CollisionShapeFactory.createMeshShape(ground);
        RigidBodyControl rbc = new RigidBodyControl(shape, 0f);
        rbc.setPhysicsSpace(physicsSpace);
        ground.addControl(rbc);
    }
private void addGround ( PhysicsSpace physicsSpace ) { Mesh quad = new Quad ( 1000f , 1000f ) ; Spatial ground = new Geometry ( "ground" , quad ) ; ground . move ( - 500f , 0f , 500f ) ; ground . rotate ( - FastMath . HALF_PI , 0f , 0f ) ; CollisionShape shape = CollisionShapeFactory . createMeshShape ( ground ) ; RigidBodyControl rbc = new RigidBodyControl ( shape , 0f ) ; rbc . setPhysicsSpace ( physicsSpace ) ; ground . addControl ( rbc ) ; }
Add a ground body to the specified PhysicsSpace.
Add a ground body to the specified PhysicsSpace .