Hi, i want to move an entity towards the direction wich the entity is looking using global vectors. i've tested with this vector:
vector(cos(nave.pan)*key_m, sin(nave.pan)*key_m, sin(nave.tilt)*key_m)
But in this code each axis depends only of one angle, but it must depend of two, for ex. axis X depends of the pan an tilt of the entity, axis Y depends also of pan and tilt, anz axis Z depends of tilt and roll.
How I can do this?