How do I check for wall collisions in unity with the character controller component? I am aware that OnControllerColliderHit exists but it only checks for collisions between the floor and player, and I want to check for collisions between the walls and the player, as well as be able to get the name of the wall game object it touched.
New contributor
Jackson Boyle is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.