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

NsdkNavMeshAgent

↳ extends UnityEngine.MonoBehaviour
NsdkNavMeshAgent is an example agent implementation that navigates a NsdkNavMesh based on logic programmed here....

Declaration

public class NsdkNavMeshAgent : MonoBehaviour

Summary

NsdkNavMeshAgent is an example agent implementation that navigates a NsdkNavMesh based on logic programmed here. You place this MonoBehaviour on a GameObject to have that GameObject navigate autonomously through your real environment. You can create new versions of this to change how your creatures navigate the NsdkNavMesh. For example you may want to use physics/forces or add splines rather than straight lines. This is a basic example that uses linear interpolation and coroutines.


Properties

NameTypeSummary
readonly pathPath
-
StateAgentNavigationState
-

Methods

NameTypeSummary
SetDestinationvoid
-
StopMovingvoid
-