Calculate getHeadingAngle()

Post » Sun Mar 24, 2013 7:22 pm

I've already searched for a way and tested many things but nothing worked as I wanted it to.

I need to be able to calculate the heading angle of the player to a specific target without using the getHeadingAngle()-function. I need to "reconstruct" it with the angles and positions given by the player and the target.
I already tried some trigonometry but it doesn't work because the player can change his angles without changing his position. So I cannot use that. I thought of using radians but I don't know in which way I could use it to achieve that.

Does anyone know a way it could be done?
Thanks in advance,

Kahmul
User avatar
Lucky Boy
 
Posts: 3378
Joined: Wed Jun 06, 2007 6:26 pm

Return to V - Skyrim