how to reset matrix?
like
mesh.postion.set(0,0,0);
mesh.rotate.set(0,0,0);
mesh.scale.set(1,1,1);
and eq
mesh.matrix.xxxxxxx?
how to reset matrix?
like
mesh.postion.set(0,0,0);
mesh.rotate.set(0,0,0);
mesh.scale.set(1,1,1);
and eq
mesh.matrix.xxxxxxx?
mesh.matrix.identity().decompose(mesh.position, mesh.quaternion, mesh.scale)
Link to the documentation: three.js docs
object.matrix.identity();
object.matrixAutoUpdate = false;
Don’t forget to set MatrixAutoUpdate to false.
https://threejs.org/docs/index.html#manual/en/introduction/Matrix-transformations