you need a local vector for this. so you have to convert your speed to the local speed. this is simply done with vec_rotate:

Code:
VECTOR speed;
vec_set(speed, vector(500, 0, 0));
vec_rotate(speed, my.pan);
pXent_setvelocity(my, speed);



Visit my site: www.masterq32.de