@Override
    public float getLength() {
        return times == null ? 0 : times[times.length - 1] - times[0];
    }
@return the length of the track
jme3-core/src/main/java/com/jme3/animation/PoseTrack.java