Page 1 of 1

Distance

Posted: Tue May 31, 2016 3:08 pm
by decompile
Hey,

How can I find the distance in units between 2 vectors?

(in my example its player origin compared to an existing info_teleport_destination)

Re: Distance

Posted: Tue May 31, 2016 4:03 pm
by satoon101
I'm certain this question has been asked at least 2 or 3 times before. Please try searching in the future.

For your answer:
http://builds.sourcepython.com/job/Sour ... t_distance

Re: Distance

Posted: Tue May 31, 2016 4:35 pm
by decompile
Mhm, not using the search box recently since the threads I find are mostly outdated.
Thanks anyway

Re: Distance

Posted: Wed Jun 01, 2016 6:10 am
by BackRaw
You could always just look at the source code: https://github.com/Source-Python-Dev-Te ... p.cpp#L177