import { commonObject3DFastMatrixUpdate } from "./commonObject3DFastMatrixUpdate.js";

/**
 *
 * @param {Object3D} object
 */
export function rootObject3DFastMatrixUpdate(object) {
    const matrix = object.matrix;

    matrix.compose(object.position, object.quaternion, object.scale);
    object.matrixWorld.copy(matrix);

    commonObject3DFastMatrixUpdate(object);
}
