Hey Guys,
I have a sidescroller where my player can shoot arrows. The arrows are using physics to properly arc from the player.
Initially the angle of the arrow points towards the mouse pointer. However, while the arrow is travelling, it stays pointed in that direction the entire time which looks a bit goofy
Think Towerfall perhaps? In that game the arrows always point towards the direction they're travelling.
Any ideas? Do I need to maybe calculate the arrow's position every few frames to get direction, and then calculate angle based on that? That sounds processor intensive and not very efficient. Maybe there's already an existing function that points sprite towards movement direction - but I haven't been able to find anything yet.
Any suggestions would be appreciated.
Thanks Guys!
In the meantime, I'll keep at it. If I find a solution, I'll post a follow up.
Tim