I am an experienced iPhone dev, but new to Cocos2D and Box2D, and I fully admit I need a physics refresher. What I am looking to build is a preview trajectory (an arc indicating a projectiles flight path based on input variables - similar to what is seen in many Angry Birds style games).
I would like to do something a bit different though, in which I set the start point (projectiles start location on screen) and end point (target location). What changes though would be the height of the parabola based on a users input. So in this sense, I'm not using parabolic path to preview where the target will land, but the angle in which the projectile hits the target (again, the parabola always terminates at the target).
I have not seen anything online that quite meets my needs. Most of the code available has more to do with showing the user where the projectile will land. I would like to determine the angle (vector), and impulse to apply to a body to match different parabolic amplitudes, but always end at the same location. A picture is worth a thousand words, so I have linked to a home made pic to try and help explain (SO wont let me embed the image).
Any help would be appreciated.