ArcBasicDocs
3DNavigationArcBasic extension

BuildNavMesh

Works out where agents can walk; returns the number of walkable areas.

BuildNavMesh ( navmesh )

Parameters

navmesh
the navmesh's handle.

Description

Works out where agents can walk, from the navmesh's entities where they are now, and gives back how many walkable areas it found, or 0 if there is nowhere to walk. Build it once the level is in place; if the level changes, such as a bridge falling, build it again. Building takes a moment for a large level, so do it while loading rather than every frame.

See also