15.10.2012, 13:05
Quote:
I would also like to point out that the other important part of YIJET's post is that they used the operators instead of the functions - I don't know WHY people still insist on using "floatadd" instead of "+"; they do exactly the same thing and one is VASTLY simpler to use than the other.
|
pawn Code:
Distance = floatsqroot(floatpower(floatabs(X1 - X2), 2) + floatpower(floatabs(Y1 - Y2), 2) + floatpower(floatabs(Z1 - Z2), 2));