Quote (ArtofApocalypse @ 6 Apr 2013 02:21)
You can literally google the forumalas for these online
and as long as you have 1 day of coding and alegrab1 you can make the equation
I was having trouble with what to search for. I kept getting formulas that only took in to account flat ground and not a difference in altitude. I found it though.
Quote (AbDuCt @ 5 Apr 2013 22:00)
that is one fucking ugly equation. try making use of the Pow() function to clean up all those `Velocity * Velocity * Velocity * Velocity` equations.
Yeah it is, lol. I didn't know how to do exponents in Expression 2 though, but turns out it's done like: Velocity^4
G =gravity() / tickrate
D = distance()
V2 = V^2
V4 = V^4
D2 = D^2
Radian1 = atan( V2 + sqrt( V4 - G * (G * D2 + Hoff * V2))) / G * D)
Radian2 = atan( V2 - sqrt( V4 - G * (G * D2 + Hoff * V2))) / G * D)
Angle1 = (Radian1 * 180) / pi()
Angle2 = (Radian2 * 180) / pi()
Did it like this and I can see exactly what's happening now