- Home /
Collision detection for many colliders
It seems the collision detection method in Unity requires that each colliding object has a script inside of it to detect collisions.
What happens if there are many, many colliders in the scene? Is the approach of putting a collision script in each still advisable when we have thousands of colliders?
Is there a way to add a "listener" to a main script for each of the colliders, instead of having to put a script in each colliding object?
One approach would be to have the script on the thing with a smaller number on screen. So for instance if it was 1000s of bullets but only 10 enemies and 1 player character that needed to be collided with you would put all the collision handeling on the player and the enemies. Not sure if this helps in your situation.