- 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
}
/** * Creates an armature from a joint list. * The root joints are found automatically. * <p> * Note that using this constructor will cause the joints in the list * to have their bind pose recomputed based on their local transforms. * * @param jointList The list of joints to manage by this Armature */ public Armature(Joint[] jointList) { this.jointList = jointList; List<Joint> rootJointList = new ArrayList<>(); for (int i = jointList.length - 1; i >= 0; i--) { Joint joint = jointList[i]; joint.setId(i); instanciateJointModelTransform(joint); if (joint.getParent() == null) { rootJointList.add(joint); } } rootJoints = rootJointList.toArray(new Joint[rootJointList.size()]); createSkinningMatrices(); for (int i = rootJoints.length - 1; i >= 0; i--) { Joint rootJoint = rootJoints[i]; rootJoint.update(); } }
System.err.println("-----------------------"); System.err.println("Selected Joint : " + selectedjoint.getName() + " in armature " + ad.getName()); System.err.println("Root Bone : " + (selectedjoint.getParent() == null)); System.err.println("-----------------------"); System.err.println("Local translation: " + selectedjoint.getLocalTranslation());