2d parabolic projectile
Posted
by
ndg
on Stack Overflow
See other posts from Stack Overflow
or by ndg
Published on 2011-03-10T15:58:20Z
Indexed on
2011/03/10
16:10 UTC
Read the original article
Hit count: 257
I'm looking to create a basic Javascript implementation of a projectile that follows a parabolic arc (or something close to one) to arrive at a specific point. I'm not particularly well versed when it comes to complex mathematics and have spent days reading material on the problem. Unfortunately, seeing mathematical solutions is fairly useless to me. I'm ideally looking for pseudo code (or even existing example code) to try to get my head around it. Everything I find seems to only offer partial solutions to the problem.
In practical terms, I'm looking to simulate the flight of an arrow from one location (the location of the bow) to another. It strikes me there are two distinct problems here: determining the position of interception between the projectile and a (moving) target, and then calculating the trajectory of the projectile.
Any help would be greatly appreciated.
© Stack Overflow or respective owner