This should work:

Code:
a = cos(me.pan);
b = sin(me.pan);

pXentsetforce(me,vector(a,b,0));



I am not sure about how to use pXentsetforce(), so you might have to adjust that bit. Everything else should work.

Last edited by TehV; 03/18/11 17:57.