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

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: 79
Status
Not open for further replies.
Top