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

Unit travel time formula

Status
Not open for further replies.
Level 13
Joined
Mar 29, 2012
Messages
542
What is the formula to get the duration a unit need to travel to a point?

Example:
- Blood Mage has 200 movement speed point (from Object Editor).
- The distance of the path going to the target point is 1500.

Travel duration = ??

Additional Question
If the Blood Mage for example travel the path for 10 seconds, how do I calculate the travel duration of another unit that has 150 movement speed without using the path distance inside the calculation?
Pretending I have only the travel duration and the movement speed of Blood Mage.
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,286
Travel duration = ??
Same as they teach one at highschool in physics?

Speed - Wikipedia

So estimated travel time for the Blood Mage would be.
1500 / 200 = 7.5 seconds

It is important to be aware this is an estimate. The Blood Mage might not be moving at all times or the path might be longer due to how the path finder operates.
 
Status
Not open for further replies.
Top