I want to calculate parabolic trajectory of a ball by providing height, pitching spot , and speed values. If I change these values the angle should change accordingly. The ball should be delivered from the height mentioned and pitch on the spot marked by the user and travel at the speed given by the user, so what will be the trajectory of the ball ?? So I need to calculate trajectory… please help asap

here some math formulas for you.

for calculating the time of flight: h = 1/2*g*t^2 (h = Height in meters, g = gravity constant (aprox. 9.8) , t = time of flight)

Landing distance : d = V*t (with no friction, V = velocity)

with this formulas you can calculate anything you want.

for further calculations you can use princibles of law of conservation of energy.

for example, your balls starting energy must be equal its landing energy.

means : At Starting: your total energy is : “Ep = m*g*h” + “Ek = 1/2*m*V^2” (m = mass of Ball)

at the and your potantial energy will be Zero . that means 1/2*m*Ve^2 = Ep+Ek (Ve = landing velocity)

you can calculate Your landing velocity like this.

now you can find any trajectory point at any given time and draw a line from it.

you can calculate how much time needed your ball for landing.

and what is its landing velocity.

converting all this to a code is a bit more tricky. if you need help about the. just ask it.

please consider up voting and accept as answer if this massage helps. this way anyone else who looks for the same thing can find this easily.