/** * returns the joint index of the joint that has the given name * * @param name * @return */ public int getJointIndex(String name) { for (int i = 0; i < jointList.length; i++) { if (jointList[i].getName().equals(name)) { return i; } } return -1; }
/** * returns the joint with the given name * * @param name * @return */ public Joint getJoint(String name) { for (int i = 0; i < jointList.length; i++) { if (jointList[i].getName().equals(name)) { return jointList[i]; } } return null; }
int id = SAXUtil.parseInt(attribs.getValue("id")); indexToJoint.put(id, joint); nameToJoint.put(joint.getName(), joint); } else if (qName.equals("tracks")) { assert elementStack.peek().equals("animation");
skinData.skinningControl.getAttachmentsNode(bw.joint.getName()).attachChild(bw.attachedSpatial);
selectedBones.put(ad.getArmature(), selectedjoint); 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("-----------------------");
logger.log(Level.WARNING, "Animation " + animationIndex + " (" + name + ") applies to joints that are not from the same skin: skin " + skinIndex + ", joint " + jw.joint.getName() + " from skin " + jw.skinIndex); continue;
Geometry jGeom = new Geometry(joint.getName() + "Joint", new JointShape()); jGeom.setLocalTranslation(start); attach(joints, deforms, jGeom); outlinesAttach = null; bGeom = new Geometry(joint.getName() + "Bone", m); setColor(bGeom, outlinesAttach == null ? outlineColor : baseColor); geomToJoint.put(bGeom, joint); attach(wireAttach, deforms, bGeom); if (outlinesAttach != null) { bGeomO = new Geometry(joint.getName() + "BoneOutline", mO); setColor(bGeomO, outlineColor); attach(outlinesAttach, deforms, bGeomO);