- Add the Codota plugin to your IDE and get smart completions
private void myMethod () {FileOutputStream f =
File file;new FileOutputStream(file)
String name;new FileOutputStream(name)
File file;new FileOutputStream(file, true)
- Smart code suggestions by Codota
}
public static void padJointTracks(List<TransformTrack> tracks, Joint staticJoint) { Joint j = staticJoint; if (j != null) { // joint has no track , we create one with the default pose float[] times = new float[]{0}; Vector3f[] translations = new Vector3f[]{j.getLocalTranslation()}; Quaternion[] rotations = new Quaternion[]{j.getLocalRotation()}; Vector3f[] scales = new Vector3f[]{j.getLocalScale()}; TransformTrack track = new TransformTrack(j, times, translations, rotations, scales); tracks.add(track); } }
rotations.add(joint.getLocalRotation().mult(rotation, rotation)); if (scale != null) { scales.add(scale.multLocal(joint.getLocalScale()));
System.err.println("-----------------------"); System.err.println("Local translation: " + selectedjoint.getLocalTranslation()); System.err.println("Local rotation: " + selectedjoint.getLocalRotation()); System.err.println("Local scale: " + selectedjoint.getLocalScale()); System.err.println("---");
Quaternion[] rotations = new Quaternion[]{joint.getLocalRotation()}; Vector3f[] scales = new Vector3f[]{joint.getLocalScale()}; TransformTrack track = new TransformTrack(joint, times, translations, rotations, scales);