Search code examples
c#unity-game-enginegame-physicsgame-developmentcollision

Player Can't Go Through Open Doorway


I have an open doorway that I've modeled in blender and put into Unity. The player can go through the doorway, but cannot go back out. The player gets stuck running into an invisible wall. I am using mesh colliders.

I've tried editing the geometry of the mesh and moving the mesh. Nothing has worked.

Video of bug: https://youtu.be/woyuY7LUtNo


Solution

  • Don't use mesh colliders, use multiple box colliders instead. It looks like a strange mesh collider was generated. Also, check that your player isn't too tall for the doorframe.