Projectile Rotation
- by Alex
I'm trying to add a projectile system like the projectiles in Realm Of The Mad God. (YouTube it to see what I mean)
These projectiles seem to move according to their rotation perfectly and can have nearly any rotation. They also have near perfect hitboxing.
What's the maths behind this? My Game works on an integer-based coordinate system, but at the moment projectiles can only shoot either 0, 45, 90, 135, 180, 225, 270 and 315 degrees.