- Home /
Best way to go about having many fast objects with physics
I'm making a game right now that makes extensive use of physics. It takes place inside an arena with walls that can be bounced on. Within it are small objects, very simple that all bounce around the arena moving pretty fast and bounce off the player too.
There won't be too many of these objects as play becomes impossible if there are about 150 or more. I'm testing it out and I repeatedly see these small objects pass through the player or arena walls and are lost. It's very important that they not be let to escape the arena because well, they're the basis of the gameplay.
I wish I could elaborate more but that's all there is to it, basically small cubes bouncing around only on the x/y axis inside an arena with walls.
And your question is... ?? Your title suggests you would like a way to keep track of all the objects you instantiated that have a rigidbody. However I don't see exactly how this will be useful, what exactly is your question?
The reason the objects are flying through the walls is because they are moving too fast and the collision isn't detected properly.
poor choice of words in hindsight, but basically is there any way to increase the accuracy? Part of the game is that things are so hectic and moving fast, forcing you to avoid them.
You can have a search around, there have been alot of questions on this topic. Here's an example
Hmm basically just make everything thicker it seems. If I increase the scale (not by scaling it, doing it within the inport settings) of everything might it increase accuracy?
Your answer
![](https://koobas.hobune.stream/wayback/20220613093650im_/https://answers.unity.com/themes/thub/images/avi.jpg)