For my game (2D platformer), there's a couple weapons that you can throw. I'd like to be able to aim using the mouse and I'm trying to display the path the projectile would follow if you throw it at that angle. I've hit a number of roadblocks, so, here I am.
My main problem is the projectiles are influenced by gravity, so it can't be some pre-drawn arc; it has to be dynamic and change as the angle between the player and the mouse changes.
Any ideas on how to approach this?