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

[Trigger] Need a formula

Status
Not open for further replies.
Level 12
Joined
Apr 16, 2010
Messages
584
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.
 
Level 33
Joined
Mar 27, 2008
Messages
8,035
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.
Top