MinieExamples/src/main/java/jme3utilities/minie/test/DropTest.java
/**
     * Add a platform to the PhysicsSpace.
     *
     * @param platformName the name of the desired platform type (not null)
     * @param topY the desired Y coordinate of the top surface (in physics-space
     * coordinates)
     */
Add a platform to the PhysicsSpace.

@param platformName the name of the desired platform type (not null)
@param topY the desired Y coordinate of the top surface (in physics-space
coordinates)
Add a platform to the PhysicsSpace . @param platformName the name of the desired platform type ( not null ) @param topY the desired Y coordinate of the top surface ( in physics - space coordinates )
@Override
    public void addPlatform(String platformName, float topY) {
        switch (platformName) {
            case "bedOfNails":
            case "corner":
            case "sieve":
            case "tray":
                addPlatform(platformName, DebugMeshNormals.Facet, topY);
                break;
            case "candyDish":
            case "dimples":
            case "smooth":
                addPlatform(platformName, DebugMeshNormals.Smooth, topY);
                break;
            case "trampoline":
                addTrampoline(topY);
                break;
            default:
                super.addPlatform(platformName, topY);
        }
    }
@ Override public void addPlatform ( String platformName , float topY ) { switch ( platformName ) { case "bedOfNails" : case "corner" : case "sieve" : case "tray" : addPlatform ( platformName , DebugMeshNormals . Facet , topY ) ; break ; case "candyDish" : case "dimples" : case "smooth" : addPlatform ( platformName , DebugMeshNormals . Smooth , topY ) ; break ; case "trampoline" : addTrampoline ( topY ) ; break ; default : super . addPlatform ( platformName , topY ) ; } }
Add a platform to the PhysicsSpace.
Add a platform to the PhysicsSpace .