MinieExamples/src/main/java/jme3utilities/minie/test/TestSoftBody.java
/**
     * Cycle through animations of the Puppet model.
     */
Cycle through animations of the Puppet model.
Cycle through animations of the Puppet model .
private void nextPuppetAnimation() {
        SkinningControl sc = (SkinningControl) RagUtils.findSControl(rootNode);
        Spatial controlledSpatial = sc.getSpatial();
        AnimComposer composer
                = controlledSpatial.getControl(AnimComposer.class);
        Action jog = composer.action("jog");
        Action walk = composer.action("walk");
        Action action = composer.getCurrentAction();
        if (action == null) { 
            composer.setCurrentAction("jog");
        } else if (action == jog) {
            composer.setCurrentAction("walk");
        } else if (action == walk) {
            composer.setCurrentAction("jog");
        }
    }
private void nextPuppetAnimation ( ) { SkinningControl sc = ( SkinningControl ) RagUtils . findSControl ( rootNode ) ; Spatial controlledSpatial = sc . getSpatial ( ) ; AnimComposer composer = controlledSpatial . getControl ( AnimComposer . class ) ; Action jog = composer . action ( "jog" ) ; Action walk = composer . action ( "walk" ) ; Action action = composer . getCurrentAction ( ) ; if ( action == null ) { composer . setCurrentAction ( "jog" ) ; } else if ( action == jog ) { composer . setCurrentAction ( "walk" ) ; } else if ( action == walk ) { composer . setCurrentAction ( "jog" ) ; } }
Cycle through animations of the Puppet model.
Cycle through animations of the Puppet model .
// first time
