I have been searching for a piece of code, that determined to closet Entity.
I have let's say 20 Enemies and 50 targets. It is very slow to cycle through all of them to determine which is target is closest to each enemy. Does any one have something in their arsenal of code snipets that would help?
Regards,
Eric
I have let's say 20 Enemies and 50 targets. It is very slow to cycle through all of them to determine which is target is closest to each enemy. Does any one have something in their arsenal of code snipets that would help?
Regards,
Eric