Hi there, have what seemed a simple problem, can’t figure it out at all…ahg!
I’d like a ball, when thrown to move from the player to a predetermined position, at the same height. It needs to arc in a parabola across that distance, however.
So, say the player(“thePlayer”) is at (40, 100). If they throw, the ball should end up at (display.contentWidth-40, thePlayer.y).
During the balls flight, it should move in a parabola, with it’s apex being 40px higher than it’s starting pixel point, and occurring at exactly screen center. ie, (display.contentWidth/2, thePlayer.y+40)
So we have a starting point (a), midpoint (b), and endpoint ©. Therefore, I ought to be able to move the ball linearly along the x, and exponentially on the y, to make a parabola, via an equation involving a,b, and c.
I’ve tried using a graphing calc and all sorts of websites to find the equation, but am just frustrating myself- the answer is out there, I just can’t get it

Any help would be much appreciated, from those who listened better in math class! 
Thank you very much! [import]uid: 69255 topic_id: 16393 reply_id: 316393[/import]
[import]uid: 69255 topic_id: 16393 reply_id: 61179[/import]