Skip to content

NavMeshAgent

Wyatt Gillette edited this page Nov 2, 2021 · 12 revisions

Description

Navigation mesh agent.

This component is attached to a mobile character in the game to allow it to navigate the Scene using the NavMesh.

Public Methods

setDestination Sets or updates the destination thus triggering the calculation for a new path.
samplePosition Finds the closest point on NavMesh within specified range.
calculatePath Calculate a path to a specified point and store the resulting path.
raycast Trace a straight path towards a target postion in the NavMesh without moving the agent.
Clone this wiki locally