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

Unit travel time formula

Status
Not open for further replies.
Level 13
Joined
Mar 29, 2012
Messages
530
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,198
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