Global position to local position

Don’t do _mesh.getWorldMatrix().invert(), because invert operates in place, so you modify the world matrix of the mesh. Do _mesh.getWorldMatrix().clone().invert() instead.

1 Like