public void setKeyframesTranslation(Vector3f[] translations) {
        if (times == null) {
            throw new IllegalStateException(
                    "TransformTrack lacks keyframe times.  "
                    + "Please invoke setTimes() first.");
        }
        if (translations == null || translations.length == 0) {
            throw new IllegalArgumentException(
                    "No translations were provided.");
        }
        this.translations = new CompactVector3Array();
        this.translations.add(translations);
        this.translations.freeze();

        assert times != null && times.length == translations.length;
    }
Sets the translations.

@param translations the desired translation of the target for each
    keyframe (not null, same length as "times")
jme3-core/src/main/java/com/jme3/anim/TransformTrack.java