Sprites using angle and velocity

BlitzMax Forums/BlitzMax Programming/Sprites using angle and velocity

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

I figured it out, the problem was that ATan only functions correctly for -90 to 90. I changed to ATan2 and it works prefectly now. :)

Local Ra:Float = ATan2(Ry,Rx)