• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[JASS] Parabolic formula

Status
Not open for further replies.
Level 11
Joined
Sep 12, 2008
Messages
657
Hey.. im making a custom missle system (spells section)

and i need to know how does the parabolic formula works..
so i can actually use it in my system..

i cant really understend whats x, whats d, and whats h. (how to call the function).

thanks in advance.
 
Level 19
Joined
Feb 25, 2009
Messages
2,004
Easiest I know:

( ( Multiplier * Current_Height ) / Max_Distance ) * ( ( Max_Distance - Current_Distance )) * ( Current_Distance / Max_Distance ) )

Multiplier: Random number, it can be anything from 1 to 9999. It declares how fast the unit will go up and down.
Current_Height: The height of the moving unit/projectile
Max_Distance: Distance between caster and target point
Current_Distance: Distance from the unit to target point

Of course, you'll need 2 points, one for the unit and one for where it should land.

If you need in coordinates, then I can't really come up with anything.
 
Status
Not open for further replies.
Top