Raycaster collider


I’m creating a project with a first-person camera, I try to deny movement when a wall or when some object is in front of my camera with Raycaster but when there are objects less tall than my camera position the raycaster does not detect them.

How can I resolve this problem?

The auto is less tall and I can across it but I can’t across the plants

Uploading: Screen Shot 2022-11-21 at 11.28.42.png…