public void setLength(float length) {
        this.length = length;
    }
Set the length of the animation

@param length the desired duration (in seconds)
jme3-core/src/main/java/com/jme3/animation/Animation.java