Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I find the closest part to something?

Asked by
lucas4114 607 Moderation Voter
8 years ago

So theres a part, and I want to find the closest part to it?

1 answer

Log in to vote
3
Answered by 8 years ago

As you haven't even tried searching for relevant information, I will not give you a script, only a method. The best way to do this would be to probably scan through every part and find the .magnitude and record the part with the lowest magnitude and after it's iterated through all the parts you will be left with the closest part.

Ad

Answer this question