Skip to main content
Skip to main content

NavMesh

buildNavMesh

Description

Build the navigation mesh based on the specified world data

Definition

buildNavMesh(entityId navMeshId, entityId worldNode, float cellSize, float cellHeight, float agentHeight, float agentRadius, float agentMaxClimb, float agentMaxSlope, float minRegionSize, float mergeRegionSize, float maxEdgeLength, float maxSimplificationError, integer navMeshBuildMask, entityId terrainDetail, string terrainCullInfoLayer, integer terrainCullInfoLayerChannels)

Arguments

entityIdnavMeshIdnavMeshId
entityIdworldNodenode to start recursive search for shapes to generate nav mesh from, navMeshBuildMask on the shape has to match the 'navMeshBuildMask' argument
floatcellSizecellSize
floatcellHeightcellHeight
floatagentHeightagentHeight
floatagentRadiusagentRadius
floatagentMaxClimbagentMaxClimb
floatagentMaxSlopeagentMaxSlope
floatminRegionSizeminRegionSize
floatmergeRegionSizemergeRegionSize
floatmaxEdgeLengthmaxEdgeLength
floatmaxSimplificationErrormaxSimplificationError
integernavMeshBuildMasknavMeshBuildMask
entityIdterrainDetailterrainDetail
stringterrainCullInfoLayerterrainCullInfoLayer
integerterrainCullInfoLayerChannelsterrainCullInfoLayerChannels

Return Values

booleansuccesssuccess