05.12.2009, 14:18
retx = (radius * floatcos(angle, degrees) + x);
rety = (radius * floatsin(angle, degrees) + y);
I think you need do this:
I realy don't know why thease minuses before angles needs, but without them this won't work perfect.
P.S. sorry for my english if I did mistakes on writing.
rety = (radius * floatsin(angle, degrees) + y);
I think you need do this:
Code:
retx = (radius * floatsin(-angle, degrees) + x); rety = (radius * floatcos(-angle, degrees) + y);
P.S. sorry for my english if I did mistakes on writing.