DotRecast icon indicating copy to clipboard operation
DotRecast copied to clipboard

question on addTile argument flags

Open lukasvd opened this issue 5 months ago • 2 comments

In DtNavMesh.cs addTile is defined as

public DtStatus AddTile(DtMeshData data, int flags, long lastRef, out long result)

In DtMeshSetReader.cs the method is called with i as a tileIndex (and provided to the argument "flags")

mesh.AddTile(data, i, tileHeader.tileRef, out _);

than in the method tileIndex is extracted by means of "int tileIndex = DecodePolyIdTile(lastRef);"

I am a bit confused by this, could someone explain the function of flags (it is commented as > Tile flags. (See: #dtTileFlags), but I can't find this reference).

lukasvd avatar Jun 06 '25 06:06 lukasvd