MinieExamples/src/main/java/jme3utilities/minie/test/TestMultiBody.java
/**
     * Process an action that wasn't handled by the active input mode.
     *
     * @param actionString textual description of the action (not null)
     * @param ongoing true if the action is ongoing, otherwise false
     * @param tpf time interval between frames (in seconds, &ge;0)
     */
Process an action that wasn't handled by the active input mode.

@param actionString textual description of the action (not null)
@param ongoing true if the action is ongoing, otherwise false
@param tpf time interval between frames (in seconds, ≥0)
Process an action that wasn ' t handled by the active input mode . @param actionString textual description of the action ( not null ) @param ongoing true if the action is ongoing otherwise false @param tpf time interval between frames ( in seconds ≥0 )
@Override
    public void onAction(String actionString, boolean ongoing, float tpf) {
        if (ongoing) {
            switch (actionString) {
                case "test test1":
                    testName = "test1";
                    cleanupAfterTest();
                    float halfExtent = 4f;
                    float topY = -1f;
                    attachCubePlatform(halfExtent, topY);
                    addMultiBody();
                    return;
            }
        }
        super.onAction(actionString, ongoing, tpf);
    }
@ Override public void onAction ( String actionString , boolean ongoing , float tpf ) { if ( ongoing ) { switch ( actionString ) { case "test test1" : testName = "test1" ; cleanupAfterTest ( ) ; float halfExtent = 4f ; float topY = - 1f ; attachCubePlatform ( halfExtent , topY ) ; addMultiBody ( ) ; return ; } } super . onAction ( actionString , ongoing , tpf ) ; }
Process an action that wasn't handled by the active input mode.
Process an action that wasn ' t handled by the active input mode .