Hello dear community!
I have been studying the docs and practicing for a week now and have a lot of fun with it!
I have an object in the scene that is specified as a target for the camera
const controls = new OrbitControls(camera, renderer.domElement);
By pressing the keys, I move the object and the camera follows it perfectly
I would like the object to be turned towards the direction of the camera.
i tried to do so modelMesh.rotation.y = camera.rotation.y;
but in this case the object does not always turn in the right direction
rotateTowards() always uses the shortest path to transform from a given orientation to a target one. It’s not possible to influence this process. TBH, I’m not sure how to implement what you are looking for.