public void setKeyframes(float[] times, Vector3f[] translations, Quaternion[] rotations) {
        if (times.length == 0) {
            throw new RuntimeException("BoneTrack with no keyframes!");
        }

        assert translations != null;
        assert times.length == translations.length;
        assert rotations != null;
        assert times.length == rotations.length;

        this.times = times;
        this.translations = new CompactVector3Array();
        this.translations.add(translations);
        this.translations.freeze();
        this.rotations = new CompactQuaternionArray();
        this.rotations.add(rotations);
        this.rotations.freeze();
    }
Set the translations and rotations for this bone track

@param times the time of each frame, measured from the start of the track
(not null, length&gt;0)
@param translations the translation of the bone for each frame (not null,
same length as times)
@param rotations the rotation of the bone for each frame (not null, same
length as times)
jme3-core/src/main/java/com/jme3/animation/BoneTrack.java