How do I get collisions for trees?

(I’m a Unity noob, btw; all I know is how to use the terrain editor.)

Simple question: how do I get collisions for trees? It appears that one of the standard tree assets has working collisions for the first-person controller, but none of the other ones do.

Also, second question: how do I make invisible barriers? I have an island and I want to make sure that players don’t go into the water.

  • Tree colliders: add a capsule collider to the tree model and adjust the size. Then in terrain settings check the tree colliders option ( if it is not checked yet)

  • Invisible barriers: Create an empty gameobject in the position you want the barrier, add a box collider to it and tweak the size of the box collider.