I'm using cond.joyx and cond.joyy to get the state of the analog stick. I wanted to somehow treat the analog stick like a 360 degree circle.
Tvspelsfreak had the bright idea of using inverse tangent (tan^-1), but it looks like that isn't going to work).
I was doing this:
Code: Select all
Part_Attribs.s_angle = atan(Buttons.joyx/Buttons.joyy) * (180/3.1415927);
It sorta almost worked, but not correctly.
Any ideas?