• 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!

Math help!

Status
Not open for further replies.
Level 7
Joined
Nov 18, 2012
Messages
272
I want to make a unit glide to 100 units flying height.

Well the trick is, I want it to reach 100 units only when it is reaches it's target.

How can I make a calculus that somehow calculates the distance the unit needs to descend every second, based on it's movement speed and flying height?

Will this do?
  • Animation - Change Unit's flying height to 200.00 at (((Distance between (Position of (Unit)) and (Position of (Target))) / (Current movement speed of (Unit))) x (Current flying height of (Unit)))
 
Last edited by a moderator:
Next time when someone say math sucks or when will you need it in real life, link them this thread!
 

Attachments

  • Untitled.jpg
    Untitled.jpg
    79.8 KB · Views: 84
Status
Not open for further replies.
Top