How to calculate the trajectory of a rocket?

406 Views Asked by At

I need the 3D trajectory of a rocket (variables: starting position, landing position, maximum altitude, flight angle):

demonstration

In Lua on MultiTheftAuto GTA SA I want to calculate this trajectory. I need a set of points to change the Y coordinate (height). I have X and Z. I have a loop that every meter of the trajectory goes through and need to get Y based on these variables.

1

There are 1 best solutions below

4
John Mayot On BEST ANSWER
// float x = 0.0 - 1.0

y = sin(x * pi) ^ 0.6