I need the 3D trajectory of a rocket (variables: starting position, landing position, maximum altitude, flight angle):
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.
// float x = 0.0 - 1.0
y = sin(x * pi) ^ 0.6