Projectile Rotation
Posted
by
Alex
on Game Development
See other posts from Game Development
or by Alex
Published on 2012-11-26T19:54:31Z
Indexed on
2012/11/26
23:25 UTC
Read the original article
Hit count: 209
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.
© Game Development or respective owner