I am looking for an algorithm in C# with which I can place many physics objects of the same type that must not overlap. Currently I set a random position and then calculate the distance to each other object. If the distance is less than a certain value, a new random position is generated and again all distances are calculated. The algorithm is way too inefficient and maybe someone has a more efficient idea, best with the functions of Godot (maybe collisions).
I would be very grateful for your help