Meshes goes through walls

So, im doing an horror game in FP view, and i have a problem. The character is holding a flashlight with a collider attached to it. But when i walk into a wall, the flashlight goes right through it, why?

Same goes for my main fps controller…

Because the flashlight likely extends beyond the range of whatever rigidbody or character controller you’re using for your first person point of view.

What you can do is create 2 cameras. One is your regular FP camera, and the other one is a special one that will only render the flashlight. The flashlight will need to be on its own special layer, and the camera will need to have “Clear Flags” set to “Depth Only” and its culling mask set to only render stuff on the flashlight layer. If you do that, nothing that’s put on the flashlight layer will ever appear to collide with the mesh.