public void setTracks(AnimTrack[] tracks) {
        this.tracks = tracks;
        for (AnimTrack track : tracks) {
            if (track.getLength() > length) {
                length = track.getLength();
            }
        }
    }
Replace all tracks in this clip. This method may increase the clip's
length, but it will never reduce it.

@param tracks the tracks to use (alias created)
jme3-core/src/main/java/com/jme3/anim/AnimClip.java