uberfoop
~=Admiral Stukov=~
- Reaction score
- 176
ok-i was trying to make a jump ability, and to calculate the distance, i used x-x and y-y to find the straight edges of a triangle, then used pythagorean theorum to find the hypotenuse (a squared+b squared=c squared, or basically the distance is "square root of: a squared+b squared" a and b being the non-hypotenuse sides. just if u didnt know this yet. which you all probably did.).
ANYWAY, it worked fine most of the time, but game me a waaaay shorter distance when i cast the spell downward. the points couldnt have been off, i once tryed putting lightning effects down to see if the points were setting in the right places, and they were.
so is there somethig wrong with the square root function? should i use tangent and arctangent?
ANYWAY, it worked fine most of the time, but game me a waaaay shorter distance when i cast the spell downward. the points couldnt have been off, i once tryed putting lightning effects down to see if the points were setting in the right places, and they were.
so is there somethig wrong with the square root function? should i use tangent and arctangent?


