updateWorldMatrix method

  1. @override
void updateWorldMatrix(
  1. bool updateParents,
  2. bool updateChildren
)
override

updateParents - recursively updates global transform of ancestors.

updateChildren - recursively updates global transform of descendants.

Updates the global transform of the object.

Implementation

@override
void updateWorldMatrix(bool updateParents, bool updateChildren) {
  super.updateWorldMatrix(updateParents, updateChildren);
  matrixWorldInverse.setFrom(matrixWorld);
  matrixWorldInverse.invert();
}