LittleStain — solved it by using the raycasting example. Now they always end up where I want them
the while idea would probably not work in this case, since the spawned object is created at an offset, so not really overlapping anymore. But I'll keep that in mind. That solution might come in handy for some other objects.