I’m trying to convert global coordinates of “particles” to the local positon of a Points object moving around the scene.
Attempts to apply the object’s matrix and using worldToLocal are not working properly:
local = globalParticle.position.clone().applyMatrix4( movingPointsObject.matrixWorld.invert() );
and
local = movingPointsObject.worldToLocal( globalParticle.position );
Why?
Minimal example: