When making a spawn select mod, I noticed players were spawning inside rocks, even though I check the location where I want to spawn for objects with the GetGame().IsBoxColliding(pos, "0 0 0", "1 2 1", excluded_objects, nearby_objects) method.
The check would still return false if the object there is too big (big rocks are mainly a problem here).
I extended the check to a height of 10 meters ("2 10 2") for the edgeLength, but there are still objects, that will not properly work (Example: Land_Castle_Donjon, see the screenshot attached)
In the screenshot the green lines indicate, that this position would be ok to spawn the player at when checking with IsBoxColliding
Basically what is wrong with the check: If my bounding box is fully inside the object, it will not detect this as colliding boxes