mirror of
https://github.com/recastnavigation/recastnavigation.git
synced 2026-08-15 23:59:59 +00:00
Use vectors to store offmesh connection data rather than arrays
This commit is contained in:
@@ -1191,13 +1191,13 @@ unsigned char* Sample_TileMesh::buildTileMesh(
|
||||
params.detailVertsCount = detailPolyMesh->nverts;
|
||||
params.detailTris = detailPolyMesh->tris;
|
||||
params.detailTriCount = detailPolyMesh->ntris;
|
||||
params.offMeshConVerts = inputGeometry->offMeshConVerts;
|
||||
params.offMeshConRad = inputGeometry->offMeshConRads;
|
||||
params.offMeshConDir = inputGeometry->offMeshConDirs;
|
||||
params.offMeshConAreas = inputGeometry->offMeshConAreas;
|
||||
params.offMeshConFlags = inputGeometry->offMeshConFlags;
|
||||
params.offMeshConUserID = inputGeometry->offMeshConId;
|
||||
params.offMeshConCount = inputGeometry->offMeshConCount;
|
||||
params.offMeshConVerts = inputGeometry->offmeshConnVerts.data();
|
||||
params.offMeshConRad = inputGeometry->offmeshConnRadius.data();
|
||||
params.offMeshConDir = inputGeometry->offmeshConnBidirectional.data();
|
||||
params.offMeshConAreas = inputGeometry->offmeshConnArea.data();
|
||||
params.offMeshConFlags = inputGeometry->offmeshConnFlags.data();
|
||||
params.offMeshConUserID = inputGeometry->offmeshConnId.data();
|
||||
params.offMeshConCount = static_cast<int>(inputGeometry->offmeshConnArea.size());
|
||||
params.walkableHeight = agentHeight;
|
||||
params.walkableRadius = agentRadius;
|
||||
params.walkableClimb = agentMaxClimb;
|
||||
|
||||
Reference in New Issue
Block a user