I am trying to understand a way in THREE.JS (and the mathematical foundation) to get the direction an object should rotate to lookAt other but without actually rotate it.
I've tried to use lookAt
but that rotates the object completely.
I want to apply a small custom parameterized rotation on that direction. So I don't want all the rotation, just the direction of that shortest to look at rotation.
So, basically I have 2 object positions and I want the shortest rotation direction of one of them so that one looks at the second object position, independently of the second object rotation. And limit the axis so it works on a over the top 2d game setting (although the graphics are 3d)..
The rotation must be around Z for example.
And relative to the current object heading as this will be computed on each game loop iteration depending on the player position.
This is intended for a game where enemies try to follow the player but turn slow to look at him.
Thank you in advance