I have a rotating object (sphere). When I click on an object, I get the coordinates relative to the camera:
var raycaster = new THREE.Raycaster(); raycaster.setFromCamera( mouse, camera ); var intersects = raycaster.intersectObjects( cameradestinations, true );
How can I get these coordinates relative to the position of the click object, and not the center of the scene?
(yes, I can do clicked.point - clicked.position, but is there something smarter here?)
source share