Search Unity

Stop navmesh carving around kinematic rigidbody (help needed)

Discussion in 'Navigation' started by FallenNode, Apr 6, 2019.

  1. FallenNode

    FallenNode

    Joined:
    Feb 25, 2013
    Posts:
    4
    I have a nav mesh agent, that I want to walk through "hologram" objects in the game. These objects are on a layer that doesn't collide with the agent layer but they have kinematic rigidbodies. It looks like the game is carving around the rigidbodies because they are kinematic, even though they don't have a nav mesh obstacle.

    Is there any way to stop this behavior? (Screenshot of the carving, plus the inspector for the object) unity ai inspector.PNG unity ai.PNG
     
  2. FallenNode

    FallenNode

    Joined:
    Feb 25, 2013
    Posts:
    4
    Nevermind, I had an obstacle on a sub object of a prefab of which this was a variant. So the behavior was in fact due to a NavMeshObstacle hidden in the hierarchy.