Hello,
I would like to make entity rotate to the mouse cursor in 2 axes (x,y, thats pan, I think) using top down camera. This could be used for example for shooting.
In the picture the teapot is always in the middle of the screen (with 500px y-offset). With mouse click, entity should be created at the position of the teapot and fly towards the mouse pointer.
I have figured out one solution using just mathematic functions, but it is quite ugly code. Is there any game studio function to achieve this?
Thanks in advance.