What is the standard way to transform from the Screen coordinate (x,y) to world coordinate World(x,y,z) and from world coordinate to a prop3D’s local coordinate Local(x,y,z)? and how to do the reverse transformation? Thanks!
Screen to world coordinates: there is computeDisplayToWorld
and computeWorldToDisplay
as part of the InteractorObserver exports.
An actor’s transform matrix can be obtained via prop.getMatrix()
. The inverse should take you to local coordinates.