hi,
I'm making an space kinda game and I want some enemies to turn straight at you. the problem is that he turns correct but only in the xz-plane.
So if I'm above the enemy, he doesn't know that and doesn't adjust his tilt....
// enemy action, ppos == position player
my.pan -= sign(ang(180 + my.pan - ppos.x)) * 5 * time_step;
my.tilt -= ?????
any help with this please ?
thx