Skip to main content
API Reference NianticSpatial.NSDK.AR.NavigationMesh

ModelSettings


Declaration

public struct ModelSettings : ValueType

Summary

The ModelSettings struct provides a configuration for how NsdkNavMesh scans the real environment and creates a navigable space. An instance of ModelSettings is created by the NsdkNavMeshManager using the parameters specified by the user in the Inspector, and that instance is subsequently used to create a NsdkNavMesh that is configured this way.


Constructors

public ModelSettings(float tileSize, float kernelStdDevTol, float maxSlope, float stepHeight, LayerMask layerMask)

Properties

NameTypeSummary
static readonly DefaultModelSettings
Constructs a configuration with default settings.

Fields

NameTypeSummary
KernelSizeint
The size of the kernel used to compute areal properties for each cell.
KernelStdDevTolfloat
The standard deviation tolerance value to use when determining node noise within a cell,
outside of which the cell is considered too noisy to be walkable.
LayerMaskLayerMask
Specifies the layer of the environment to raycast.
MaxSlopefloat
Maximum slope angle (degrees) of an area to be considered flat.
MinElevationfloat
Minimum elevation (meters) a GridNode is expected to have in order to be walkable
SpatialChunkSizefloat
Size of a spatial partition in square meters.
Grid cells within the same chunk will be stored together.
StepHeightfloat
The maximum amount two cells can differ in elevation to be considered on the same plane.
TileSizefloat
Size of a grid cell in meters.