Search Unity

How jump between terrain without offmesh link?

Discussion in 'Navigation' started by Xhitman, Sep 15, 2017.

  1. Xhitman

    Xhitman

    Joined:
    Oct 30, 2015
    Posts:
    452
    I have ground and sky terrain on a rts game, sky terrain is at the top of ground terrain, i want meshagent be able to move between these terrain anywhere.

    Of course, offmesh link do not work because it have to be at the edge.
     
  2. DwinTeimlon

    DwinTeimlon

    Joined:
    Feb 25, 2016
    Posts:
    300
    My suggestions would be to disable the NavMeshAgent, then sample a position on the NavMesh the agent needs to transition to. Move the NavMeshAgent yourself to the sampled position and reactive the NavMeshAgent.