Search Unity

Multiple NavMesh area costs?

Discussion in 'Navigation' started by Burai, Aug 21, 2016.

  1. Burai

    Burai

    Joined:
    Apr 29, 2015
    Posts:
    6
    Is there anyway to change the value of a NavMesh Area cost, for each and different Gameobject? So that a gameobject would take a different path to an object?

    Its like zombies walk faster on cursed ground and humans walk faster on normal ground, but different for visa versa.
     
  2. JBR-games

    JBR-games

    Joined:
    Sep 26, 2012
    Posts:
    565
    You can do a navmesh layer check and set speed of that gameobject accordingly.

    Also look into Navmesh.SetAreaCost. i think you can set that per agent.
     
    Last edited: Aug 21, 2016
    laurentlavigne likes this.