API

Function createDebugNavMeshGeometry

  • Extract debug visualization geometry from the generated navmesh. Faces are detached (each triangle gets its own 3 vertices) and per-vertex normals are set to the face normal — yielding flat shading without the need for a separate normal-computation pass in callers. Returns positions, normals, indices, and a hash of the positions for cross-engine parity checks.

    Parameters

    Returns {
        indices: Uint32Array;
        normals: Float32Array;
        positions: Float32Array;
        positionsHash: number;
    }