Looking for help with arc formula
jmachado999
Member Posts: 52
I was hoping someone could help me figure out a formula for an arrow being shot from a tower.
I would like the arc to peak between to known points
At this point I am accelerating to the end point and it works ok but the arc is not always in the center of the x distance between the start and end points ( or somewhere near that)
I am thinking that there must be some kind of distance/2 in the acceleration field but i must admit I am a bit lost on thsi one because i'm sure the answer is easier than I am making it out to be.
Again need to fire an arrow, have it peak in an arc, and reach it's destination ( the y position might be above or below the starting y)
Thanks in advance for any help you might provide.
Comments
You could use a couple of interpolations . . . . demo attached:
https://www.mediafire.com/?6c1lzj53xzwlelc
You could also - (figuratively) draw a line between two points - and using a little trigonometry to work out where an arbitrary distance from the line - at the mid way point - would sit . . . . shouldn't be too hard.
@Socks That's a simple elegant solution, thanks for bringing it to my attention.
I also love the color animation you have following the projectile.
Thanks again it's a tremendous help!
Glad it works for you