Search Unity

Multiple NavMesh heights

Discussion in 'Scripting' started by angrypenguin, Apr 23, 2014.

  1. angrypenguin

    angrypenguin

    Joined:
    Dec 29, 2011
    Posts:
    15,620
    This isn't really a scripting question, but there's no more appropriate section.

    I have a NavMesh in a scene, it's working great. But... I have two different types of enemies which are very different heights - one less than a meter tall, one over two meters tall.

    I haven't tried yet, but I assume that when I hook the pathing logic up they're both going to take the same path since the NavMesh is made with a single height. Since the size of enemies is an important mechanic I need for them to take different paths to destinations based on where they do and don't fit.

    Is there a way for me to have two NavMeshes with different heights in the same scene?

    Or, is there another way to have the height of enemies taken into account when calculating paths?