[help] Calculate 10 closest objects from an array
#5

Quote:
Originally Posted by MadeMan
Find the closest one 10 times (loop), but every time you find one, save it to a variable and skip it on next check.
I know.. but looping 10 times isn't an option
I want it with looping just once

it must be possible, looping 10 times is reading every coordinate 9 times too much
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 4 Guest(s)