public void setTime(double animationTime) {
        double length = currentAction.getLength();
        if (animationTime >= 0.0) {
            time = animationTime % length;
        } else {
            time = (animationTime % length) + length;
        }
    }
Changes the animation time, wrapping the specified time to fit the
current Action. An Action must be running.

@param animationTime the desired time (in scaled seconds)
jme3-core/src/main/java/com/jme3/anim/AnimLayer.java