I have check the object API, I am not sure if a can calculate the object angle according the speed? I want to change the anim or rotation the object according to the speed, in order the object actor a real object. such as missile or others that a direction associate. Or are there other good approach for this job?
Something like this?
By the way, how to compile the MushroomStew. I'd like to play with it
If that is the case:
orxMath_ATan(pos1->fY - pos2->fY, pos1->fX - pos2->fX);
Assumining pos1 and pos2 are orxVector*. The result will be in radians.
As for the angle, if you're not entirely comfortable with the trigonometry Knolan exposed, you could always convert from cartesian to spherical coordinates using orx.