Also, you should add the MY entity's position after vec_rotate-ing. Actually, that might be a big source of problems.


c_trace(my.x,vec_add(vec_rotate(vector(5,0,0),my.pan),my.x),IGNORE_ME|IGNORE_YOU);