Rotate mesh to face a target

Hey guys :slight_smile:

So currently I have a static scene where two gltf models are loaded. These models are positioned in the scene depending on what props are passed to them.
What I would like to achieve, is that one of these models is rotated to face the other on initial load of the scene. These models are static, so the values will not change over time.
I was hoping there would be a method to easily achieve this, like the setTarget method for a camera, however I can’t find anything.
Is there a method, or a commonly used equation I can use for this purpose, or will I have to write my own? :sweat_smile:
Thanks guys!

1 Like

I think you’re looking for this


Precisely what I’m looking for, thank you !

1 Like