• 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.
  • Create a faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

Projectile arc on hill

Status
Not open for further replies.
Level 13
Joined
Mar 29, 2012
Messages
542
I have this missile (special effect), arc-projected to a point on the air. I'll just combine the target location z with the target height. I used this parabola function:
JASS:
function Parabola takes real h, real d, real x returns real
    return (4.00 * h / d) * (d - x) * (x / d)
 
    // 'h' is the max height
    // 'd' is the distance to target (max distance)
    // 'x' is the currently traveled distance at the time when it is iterated
endfunction

But the missile will just aim the ground. And I can't figure out the walk-around.
Any suggestion or help?

The missile also won't fly by h above the target if the target is higher.
I aim to use a fixed move speed which are based on specific time and max height (configurable variables).

curve-on-hill.png
 
Last edited:
Status
Not open for further replies.
Top