My character is passing the wall, Help...

how to prevent my character passing through the wall? what is the secret code for that for c#? my character is using character controller and character motor and isometric character controller. i hope you can help me. thank you in advance for helping me.

Select wall/mesh > Component menu > Physics > Add a Box/Mesh collider

thanks but not working

i think i found the problem. the isometric character controller might have a problem becuase it cant detect the collision.

Secret code? Anyways i think your character might be missing some form of collision too.

You could always just put that if the xyz position of the character is too similar to that of the wall, stop movement in that direction.