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

NsdkNavMesh


Declaration​

public class NsdkNavMesh

Summary​

This class manages the data structures associated with a navigation mesh ("NsdkNavMesh"). It dynamically builds a 2d grid on the meshes detected in the environment for running navigation algorithms on. You are able to retrieve a number of properties of the "NsdkNavMesh" from it. There are also a number of methods to help you place and move NsdkNavMeshAgents on the board.


Constructors​

public NsdkNavMesh(ModelSettings settings, bool visualise)

Summary​

Constructs a new NsdkNavMesh using the parameters given.

Returns​

Returns the newly created NsdkNavMesh.


Properties​

NameTypeSummary
Areafloat
The discovered free area in square meters.
readonly SettingsModelSettings
The configuration of the NavMeshModel.
readonly SurfacesList<Surface>
-

Methods​

NameTypeSummary
CalculatePathbool
-
CheckFitbool
-
Clearvoid
Removes all surfaces from the NsdkNavMesh.
Destroyvoid
-
FindNearestFreePositionbool
-
FindRandomPositionbool
-
IsOnNavMeshbool
Checks if a particular 3d position is on the NsdkNavMesh (within a certain threshold).
Prunevoid
-
RayCastbool
-
Scanvoid
-