Home | History | Annotate | Download | only in animation

Lines Matching refs:translations

56     private CompactVector3Array translations;
71 * @param translations the translation of the bone for each frame
74 public BoneTrack(int targetBoneIndex, float[] times, Vector3f[] translations, Quaternion[] rotations) {
76 this.setKeyframes(times, translations, rotations);
83 * @param translations the translation of the bone for each frame
87 public BoneTrack(int targetBoneIndex, float[] times, Vector3f[] translations, Quaternion[] rotations, Vector3f[] scales) {
89 this.setKeyframes(times, translations, rotations, scales);
132 * returns the array of translations of this track
136 return translations.toObjectArray();
140 * Set the translations and rotations for this bone track
142 * @param translations the translation of the bone for each frame
145 public void setKeyframes(float[] times, Vector3f[] translations, Quaternion[] rotations) {
150 assert times.length == translations.length && times.length == rotations.length;
153 this.translations = new CompactVector3Array();
154 this.translations.add(translations);
155 this.translations.freeze();
162 * Set the translations, rotations and scales for this bone track
164 * @param translations the translation of the bone for each frame
168 public void setKeyframes(float[] times, Vector3f[] translations, Quaternion[] rotations, Vector3f[] scales) {
169 this.setKeyframes(times, translations, rotations);
208 translations.get(0, tempV);
214 translations.get(lastFrame, tempV);
232 translations.get(startFrame, tempV);
237 translations.get(endFrame, tempV2);
273 Vector3f[] translations = new Vector3f[tablesLength];
277 translations[i] = sourceTranslations[i].clone();
283 return new BoneTrack(targetBoneIndex, times, translations, rotations, scales);
290 oc.write(translations, "translations", null);
301 translations = (CompactVector3Array) ic.readSavable("translations", null);
308 if (translations == null) {
309 Savable[] sav = ic.readSavableArray("translations", null);
311 translations = new CompactVector3Array();
314 translations.add(transCopy);
315 translations.freeze();