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

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

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

    const parent = object.parent;

    object.matrixWorld.multiplyMatrices(parent.matrixWorld, matrix);

    commonObject3DFastMatrixUpdate(object);

}
