i rotated it like that:

phent_getvelocity(my,vel,nullvector);
vec_rotate(vel,vector(-my.pan,-my.tilt,-my.roll));

i think vel.x is what i want then but i am not completely sure?