Trollvottel
never aging title
- Reaction score
- 262
I made a system for throwing something and so I tried to make a formula for required speed with given angle and distance.
I know the formula for distance is
so I changed it into
but it doesnt work.
the other formulas I use are for x:
and for y:
I know the formula for distance is
JASS:
distance = (Speed*Speed) * Sin(2*angle) / g
so I changed it into
JASS:
Speed = SquareRoot(distance * g / Sin(2*angle))
but it doesnt work.
the other formulas I use are for x:
JASS:
x = speed * time * Cos(alpha)
and for y:
JASS:
Tan(alpha * bj_DEGTORAD) * x - (g/2*Speed* Pow(Cos(alpha,2))) * x²