• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[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