Search Unity

Question NavMesh margin to the edge of a platform. Can I control it?

Discussion in 'Navigation' started by Evgeni_Incineration, Feb 21, 2023.

  1. Evgeni_Incineration

    Evgeni_Incineration

    Joined:
    Jul 4, 2022
    Posts:
    27
    Hello everyone,

    I have started working on implementing navigation in a prototype I am working on.
    Currently I am baking a playground we are going to use for gameplay testing.

    I noticed that certain (smaller) platforms were not getting baked because there were too small in surface area.
    It is because of the agent's radius being too big (lower radius like .25 includes them). That is fine, if there is a wall next to the edge (like it is in the platforms bases) but in the case of empty space all around the platform is not OK.

    Is there a way to control margin to platform edge?

    upload_2023-2-21_15-7-54.png
     
  2. Evgeni_Incineration

    Evgeni_Incineration

    Joined:
    Jul 4, 2022
    Posts:
    27
    Making "Minimum Region Area" fixed the problem of having small platforms not getting any NavMesh.

    upload_2023-2-21_17-42-17.png

    Still, ill be interested if there is way to "modify" agent radius on certain platform.