Try this smile
Code:
VECTOR dist;
 vec_set (dist,vector(100,0,0)); 
 vec_rotate(dist,my.pan);
 vec_add (my.x,dist); // move entity on x axis in local coord




A7 Commercial cool
Celeron 1700, GeForce 5500 FX 256mb, 1 Gb Ram