Is there a way to reset a three.js
mesh's matrix to its original value after multiple transformations have been applied? I want to ensure that each subsequent transformation is based on the original state of the mesh. How can this be achieved?
I attempted the following approach, but it did not yield the desired result
const identity = model.matrix.identity();
model.matrix = identity;
model.matrixWorld = identity;
model.updateMatrix();
model.updateMatrixWorld();
model.applyMatrix4(newMatrix);