Math & Jass Problem

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
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²
 

Trollvottel

never aging title
Reaction score
262
desperated bump

the weird thing is, i can change everything so that it works. but when i then change the angle it doesnt work anymore....
 

Trollvottel

never aging title
Reaction score
262
thank you, that is what im searching for, i guess i searched for the wrong keywords in the wrong language
/edit: ah i see where my error was....

Tan(alpha * bj_DEGTORAD)
should be
Tan(alpha)

and this was everything -.-
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top