Hey guys I just upgraded from Unity 2021 to 2022 and I am having a problem where my player can walk through doors.
It works as expected in 2021 but in 2022 Unity allows my player capsule collider(unit layer) to passthrough my door box collider(door layer).
The colliders are setup correctly in the physics settings to collide with each other.
I don’t have anything set in layer overrides.
Are you using the physics API correctly or are you bypassing it?
With Physics (or Physics2D), never manipulate the Transform directly. If you manipulate the Transform directly, you are bypassing the physics system and you can reasonably expect glitching and missed collisions and other physics mayhem.
Always use the .MovePosition() and .MoveRotation() methods on the Rigidbody (or Rigidbody2D) instance in order to move or rotate things. Doing this keeps the physics system informed about what is going on.