Posted By: Sub_Game
vec_to_ang problems - I cant get a Euler angle to an object! - 06/25/10 11:38
I'm having a lot of trouble doing the simple calculation of a Euler angle from 2 3D locations. This is my attempt that should have turned my_unit to face force_ent. It has no effect at all.
Code:
vec_set(tempVector, force_ent.x); vec_sub(tempVector, my_unit.x); vec_to_angle(my_unit.pan, tempVector);
I have tried several other ways but vec_to_angle returns extreme results.
Help please!