3D Trigonometry
#5

retx = (radius * floatcos(angle, degrees) + x);
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);
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.
Reply


Messages In This Thread
3D Trigonometry - by Daren_Jacobson - 11.11.2009, 00:20
Re: 3D Trigonometry - by Daren_Jacobson - 27.11.2009, 13:27
Re: 3D Trigonometry - by yom - 27.11.2009, 13:40
Re: 3D Trigonometry - by Daren_Jacobson - 27.11.2009, 13:58
Re: 3D Trigonometry - by GRaViTY14 - 05.12.2009, 14:18
Re: 3D Trigonometry - by Daren_Jacobson - 08.12.2009, 01:21

Forum Jump:


Users browsing this thread: 1 Guest(s)