Hi,
I am trying to create a procedural generated space and I couldn’t find a solution to the next problem:
- The spawned scale, rotation and transform might vary.
- I need that none of the objects touch each other when spawned
How is the best way to handle this? I was thinking about adding reference to those objects into an array and then run through all them while relocating those that are hitting other. But so far I couldn’t find any help regarding how to check those collisions from a single script and in the same script iteration (without having to wait for the next frame and making the objects self send the collision information to the main script).
Is there some way to do this? And if not, what is the best practice to achieve what I am trying?