Search code examples
unity-game-enginegame-physicsgame-developmentmesh-collider

Box collider dont recognize rigidbody in unity


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

fox inspector tree inspector


Solution

  • Check theese:

    1. Check if collider component is active & working on your fox & tree (because that's marked removed)
    2. in Physics window, check that player's & tree's layers can have collision with each other