• Check out the results of the Techtree Contest #19!
  • 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 void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

[Trigger] Need a formula

Status
Not open for further replies.
Hi there. I need a formula that would calculate the height...
For example: i got 2 points A and B. I need to move from A to B, but B has a 500 height and is 1000 range away from A. So how do i calculate, how much height do i need to add every 1 range to a dummy that moves from A to B, so when he reaches B his height will be 500.
This isn't hard but i got a lot of stuff right now, that needs to be solved faster.
+rep for help, hope i explained good.
 
From what I understand:


---------------------------------------------------------Point B
------------------------------------------------------------^
------------------------------------------------------------(500 height)
Point A >>>>>>>>>>>(1000 range)>>>>>>>>>>>>>>>>>>>>>^

Is it kinda like right-angle triangle or something ?
Just need to confirm
 
Status
Not open for further replies.
Back
Top