updateMatrixWorld method

void updateMatrixWorld([
  1. bool force = false
])
inherited

Implementation

void updateMatrixWorld([bool force = false]) {
  if (matrixAutoUpdate) updateMatrix();

  if (matrixWorldNeedsUpdate || force) {
    if (parent == null) {
      matrixWorld.copy(matrix);
    } else {
      matrixWorld.multiplyMatrices(parent!.matrixWorld, matrix);
    }

    matrixWorldNeedsUpdate = false;

    force = true;
  }

  // update children

  List<Object3D> children = this.children;

  for (var i = 0, l = children.length; i < l; i++) {
    children[i].updateMatrixWorld(force);
  }
}