NavMeshAgent.Raycast

function Raycast (targetPosition : Vector3, out hit : NavMeshHit) : boolean

Parameters

NameDescription
targetPosition The desired end position of movement.
hit Holds the properties of the resulting unblocked position.

Returns

boolean - True If terminated before reaching target position. Otherwise returns false.

Description

Trace movement towards a target postion in the NavMesh. Without moving the agent.