Why is my person walking through trees?
How can my character go through a tree when my character has a rigidbody/mesh collider and my tree prefab has a box collider? I want the tree to act like a barrier
colliders don't detect each other, I want the tree to act as an obstacle
CodePudding user response:
im assuming you are painting the trees on the terrain. If so then remove the Terrain collider in the Tree1 prefab and then refresh.
CodePudding user response:
Check theese:
- Check if collider component is active & working on your fox & tree (because that's marked removed)
- in Physics window, check that player's & tree's layers can have collision with each other
CodePudding user response:
Firstly, you need to assign Terrain Data because its look like none.