My character goes through the object like walls and roads instead to stop there

I make a game but my character goes inside through the walls and rocks. Some part on the rocks and some part above the rocks. Character goes inside the house through walls instead to stop outside.

Hi,

Check the collision setting for each mesh:

If you have a green outline around the mesh, it has collision. But if it doesn’t, you’ll need to add one in the Collision drop down menu.