private void setupAnimationController() {
        composer = model.getControl(AnimComposer.class);
        standAction = composer.action("stand");
        walkAction = composer.action("Walk");
        /*
         * Add a "shootOnce" animation action
         * that performs the "Dodge" action one time only.
         */
        Action dodgeAction = composer.action("Dodge");
        Tween doneTween = Tweens.callMethod(this, "onShootDone");
        composer.actionSequence("shootOnce", dodgeAction, doneTween);
        /*
         * Define a shooting animation layer
         * that animates only the joints of the right arm.
         */
        SkinningControl skinningControl
                = model.getControl(SkinningControl.class);
        Armature armature = skinningControl.getArmature();
        ArmatureMask shootingMask
                = ArmatureMask.createMask(armature, "uparm.right");
        composer.makeLayer("shootingLayer", shootingMask);
        /*
         * Define a walking animation layer
         * that animates all joints except those used for shooting.
         */
        ArmatureMask walkingMask = new ArmatureMask();
        walkingMask.addBones(armature, "head", "spine", "spinehigh");
        walkingMask.addFromJoint(armature, "hip.left");
        walkingMask.addFromJoint(armature, "hip.right");
        walkingMask.addFromJoint(armature, "uparm.left");
        composer.makeLayer("walkingLayer", walkingMask);

        composer.setCurrentAction("stand", "shootingLayer");
        composer.setCurrentAction("stand", "walkingLayer");
    }
A walking animated character followed by a 3rd person camera on a terrain with LOD.
@author normenhansen
jme3-examples/src/main/java/jme3test/bullet/TestWalkingChar.java