🤔

Layer issues#

Unity's layer-based collision can exclude colliders and triggers from interacting with each other at all. Check that the toggles matching the colliders layers are enabled in the project settings.

For 3D:
See EditProject SettingsPhysicsSettings, and the Layer Collision Matrix at the bottom.
For 2D:
See EditProject SettingsPhysics 2D, and the Layer Collision Matrix at the bottom.

Layer Collision Matrix

See Layer-based collision detection for more information.

Make sure the layers of your two objects are interacting in this matrix.


My rigidbody is still tunnelling through walls.