I'm making a map where I need to move a missile like this:
I've done the actual movement part, but I need a function to calculate the height of the missile.
So I founded this function:
It calculates the height, starting from 0 and finishing in 0. But I want it to start from 155 and finish in 0, so I tought "using this function, I need to calculate a start point of the parabola, creating the missile at X dist, where the height is 155".
I'm not that good at maths, I understand trigonometrics and it's functions (sine, cosine, tangent, etc.), but I'm stuck here.
Can someone create a function or help me creating a function that calculates the dist variable knowing the height, the max distance and the curve?
(or, if you find it easier, a function that creates something that goes like that parabola function but starts at some height (155, but this number can change))
Thank you.
I've done the actual movement part, but I need a function to calculate the height of the missile.
So I founded this function:
JASS:
It calculates the height, starting from 0 and finishing in 0. But I want it to start from 155 and finish in 0, so I tought "using this function, I need to calculate a start point of the parabola, creating the missile at X dist, where the height is 155".
I'm not that good at maths, I understand trigonometrics and it's functions (sine, cosine, tangent, etc.), but I'm stuck here.
Can someone create a function or help me creating a function that calculates the dist variable knowing the height, the max distance and the curve?
(or, if you find it easier, a function that creates something that goes like that parabola function but starts at some height (155, but this number can change))
Thank you.