- Home /
I have problem with detecting colliders by ovelapSphere
I am placing rocks on map with script. Rocks have colliders and i dont want them to overlap. I use ovelapSphere to detect if around picked point already spawned rocks. But problem is that it instantiates rocks inside each other. I thought it is because of physics. Maybe it does not update every time i spawn a rock, so i made some changes to my code so it waits for next frame to place next rock. But it still place them so they overlap. How can i solve this problem?
Your answer
Follow this Question
Related Questions
How to prevent collider overlap during prefab replacement 0 Answers
C# Check if Collider2D[] Doesn't contain Scripted GameObject 1 Answer
Two rigidbody's overlap instead of colliding 1 Answer
Is there a way to determine if an object is within a trigger, from objects perspective? 2 Answers
Camera gets flung off of the map when the player collides with certain objects. 0 Answers