Example #1
0
 /**
  * Calculates the local and world transform of all {@link Node} instances in this model,
  * recursively. First each {@link Node#localTransform} transform is calculated based on the
  * translation, rotation and scale of each Node. Then each {@link Node#calculateWorldTransform()}
  * is calculated, based on the parent's world transform and the local transform of each Node.
  * Finally, the animation bone matrices are updated accordingly. This method can be used to
  * recalculate all transforms if any of the Node's local properties (translation, rotation, scale)
  * was modified.
  */
 public void calculateTransforms() {
   for (Node node : nodes) {
     node.calculateTransforms(true);
   }
   for (Node node : nodes) {
     node.calculateBoneTransforms(true);
   }
 }