• 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] Getting the perfect arc with a set height; formula

Status
Not open for further replies.
Level 10
Joined
Apr 9, 2004
Messages
502
for months i've tried to figure this out and finally i have. Here's a formula that will get you a perfect arc every time adn allow you to set a max height if you want or make it relative etiher wya; this worsk 100% and to all those who are tired of making tirabgular arcs, here it is:

y= (-x^2 + dx)/(d /((mh/d) * 4))

y is your current height and x is the distance from the jumping point that you're currently at. d is the total distance and mh is the max height you want. It's the perfect arc every time and i;ve alreadyt ested it and it works. every time.

For the record however, this is technically a reversed parabola.

Hopefully this helps all of you with your arc related abilites and scripts.
 
Status
Not open for further replies.
Top