- #1
Ehdrian
- 2
- 0
Hello!
This is not homework :-)
I can figure this out:
By getting the initial y velocity = sqrt(2 * gravity * max height)
and time to peak height = initial_y_velocity / gravity
and the initial x velocity = distance_x / (time_to_peak_height * 2);
However, I need to hit a point with elevation such as:
So, given max height, start point, and end point. What is my initial velocity x, and initial velocity y? No wind, and gravity is constant.
I've really come to a stand still on this! Any help would be great.
Adrian
This is not homework :-)
I can figure this out:
Code:
y = 100 = max height
0,0 200,0
------------------------------------------------------------
By getting the initial y velocity = sqrt(2 * gravity * max height)
and time to peak height = initial_y_velocity / gravity
and the initial x velocity = distance_x / (time_to_peak_height * 2);
However, I need to hit a point with elevation such as:
Code:
y = 100 = max height
190,65
-----------------
0,0
-------------------------------------------
So, given max height, start point, and end point. What is my initial velocity x, and initial velocity y? No wind, and gravity is constant.
I've really come to a stand still on this! Any help would be great.
Adrian