Hi, i want to move an entity towards the direction wich the entity is looking using global vectors. i've tested with this vector:

Code:
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?


3D Gamestudio A8 Pro
AMD FX 8350 4.00 Ghz
16GB RAM
Gigabyte GeForce GTX 960 4GB