mirror of
https://github.com/recastnavigation/recastnavigation.git
synced 2026-10-08 09:55:43 +00:00
Use vectors to store offmesh connection data rather than arrays
This commit is contained in:
@@ -701,13 +701,13 @@ bool Sample_SoloMesh::build()
|
||||
params.detailVertsCount = detailMesh->nverts;
|
||||
params.detailTris = detailMesh->tris;
|
||||
params.detailTriCount = detailMesh->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