Search Unity

Detect and climb elevations

Discussion in 'Navigation' started by Ay-mak, Feb 21, 2019.

  1. Ay-mak

    Ay-mak

    Joined:
    Jan 25, 2019
    Posts:
    13
    Hi everyone. I'm not sure if climbing is the right term but I would like to know if there was any tutorial on how to make the character detect little elevations and climb them.
     
  2. Yandalf

    Yandalf

    Joined:
    Feb 11, 2014
    Posts:
    491
    If you want NavMeshAgents to simply walk over small slopes and such like regular terrain (think of hills and ramps and such) you can simply tweak the max slope value in the NavMeshAgent.
    If you're talking more like ridges and ledges your character needs to climb over, you can use OffMeshLinks to connect the bottom and top of the ridge.