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.
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!