API

Function createNavMesh

  • Build a navmesh from one or more meshes. Each mesh's CPU positions are transformed by its worldMatrix (matching BJS GetPositionsAndIndices), merged into a single stream, and index winding is reversed (left-handed convention) unless doNotReverseIndices is set.

    • Solo navmesh by default.
    • If maxObstacles > 0, builds a tile-cache navmesh so obstacles can be added/removed dynamically.
    • Off-mesh connections can be supplied for either solo or tile-cache.

    Parameters

    Returns void