Unity character walk/sprint through tree

I’m new to Unity and working on my first project. My character walks or sprints through trees, and I can’t figure out how to fix it. I used the terrain tool to add trees and started with Unity’s Starter Kit, but I replaced the default environment with a new terrain.

Any tips would be greatly appreciated. Thanks in advance!

Hi make sure your tree prefabs have colliders on them. There are different kinds and you assign them in the inspector window. Just click on “add component” and type “collider”…you will see the options there. Good luck and welcome!

1 Like

thanks bro! it worked well

1 Like