Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Bug Navmesh Modifier Volumes behave badly and unexpectedly

Discussion in 'Navigation' started by Chimpien, Oct 19, 2022.

  1. Chimpien

    Chimpien

    Joined:
    Nov 8, 2018
    Posts:
    8
    I am trying to use modifier volumes to change area movement costs but they don't work at all consistently. Firstly the area of changed cost doesn't always appear on bake and when it does it doesn't look like the area where the volume intersects the navmesh. Secondly intersecting modifier volumes don't function well at all, and the resulting cost change is even further from the intersection of volume and navmesh surface. This looks like a bug, or am I doing something wrong?

    Image 1 shows trying to put the small volume in the centre of the large one and it being impossible as the intersection of the volume and the surface is not where the cost is, and moving it by tiny amounts and rebaking doesn't work to get it there. Image 2 shows an intersection where half of the green volume does not affect the navmesh intersect2.png intersect1.png
     
  2. androvisuals_unity

    androvisuals_unity

    Joined:
    Mar 23, 2020
    Posts:
    47
    Have you tried pushing the modifier volume right through the floor?
    If its kind of on top/touching the surface then there's a chance it won't work.
    Can you post pictures with a more 3D angle so its easier to see how they're placed?