Search Unity

Animated NavMesh?

Discussion in 'Animation' started by ldb, Oct 8, 2014.

  1. ldb

    ldb

    Joined:
    Apr 30, 2013
    Posts:
    40
    Hi there,

    I've a feeling this is not possible, but maybe someone knows a work around...

    I have a large vehicle in my scene. Characters walk around inside the vehicle using a NavMesh.

    Now, I would like my vehicle to move around the terrain. But currently the NavMesh stays put as the vehicle moves. Is there a way to animate, change position of a baked NavMesh at runtime? Is there any other way of achieving this effect with NavMeshes?

    Thanks
     
  2. AthosK

    AthosK

    Joined:
    Jan 20, 2013
    Posts:
    428
    There is no way to move or alter the NavMesh at all at runtime, you can use NavMeshObstacle and Carve to make small changes on it, but constantly doing this is going to give you performance nightmares.

    Take a look at Unity's free sample assets and the scene AI Car (or something like that) it has a great example on how to do the thing you want (if I understood correctly)