Model to follow the mouse. Interesting observation

Hello. I previously looked at various examples of how you can get the model to follow the mouse, but I noticed that the rotation occurs based on one specific point. I’m attaching a demo where you can see that the box moves correctly, but the head model doesn’t. located just above the cube (point). How is the turning point determined by the system and how to change it? How can you absolutely position the model under this point? Thank you :slight_smile:

P.S. i mean Y axis. X works as it should.

DEMO: Rotation - CodeSandbox

Cube appears to rotate correctly just because it’s in the centre of the scene. You need to use the .lookAt method on the head ( three.js docs ) or apply the proper rotation in some other way so it would appear as it’s looking at the cursor.