So I have a level that consists of a bunch of box colliders lined up one after another. The player character then has to run over all of them. However, after changing the way I instantiate the gameobjects with the box colliders on them, I sometimes experience a problem where a box collider will stop working and the player will fall through it. This happens probably once in every 500 blocks or more, so it is fairly hard to reproduce, however when it does happen I cannot get the specific box collider to collide with the player no matter which settings I tweak. The only way to fix the problem has been to remove the box collider from the gameobject and add a new one.
Things I have tried already to no avail:
- Adjusting the fixed timestep
- Adding a kinematic rigidbody component
So my big question is, does anyone know what can be causing this?