How to spawn a player the farthest away from other players within a radius?

This is more of a mathematical than a scripting question. Let’s say we have a 2d circle of radius n, where players spawn and the circle circumference acts as a border. How would I calculate the position inside the circle with the farthest distance from players and the border?

I’m looking for a solution that doesn’t depend on brute-forcing positions to satisfy some kind of threshold, but an optimized “clever” way to locate the exact position with the biggest distance.


Sounds like circle packing as you are packing circles representing players into one overall circle and you are trying to increase the diameter as much as possible to separate them.

1 Like