Rotate object to mouse

Hi. i have box, how to make the box turned towards the mouse.
in this example i know coordinates, what do next?

Hi!
Could you provide more detailed information about what you want to achieve?

Sorry) I want to the box looked at the cursor

One approach is to use THREE.Raycaster() and THREE.Plane().
Use .intersectPlane() method of .ray property of the raycaster. Thus you’ll find the point of intersection between the ray and the plane and use .lookAt() method of your box to point to the cursor.

1 Like

Yeees. Thanks, I did this!

You’re welcome :beers: