bool Clamp(ref Vector3 position) | Clamps a position onto the current navmesh node in XZ. Returns false if there is no current path node. |
void ContinuePath() | Moves on to the next part of the path, finishing (and raising TargetReached) if all parts are done. |
void GetWalls(List<Vector3> wallBuffer, float range) | Fills the buffer with navmesh wall segments within range of the current path position. |
void NavigateTo(Vector3 position, float targetReachedDistance = 0.1) | Requests a path to a position. Finishes at once if already within the reached distance. |
void ResetPosition() | Zeroes the local position and rotation and teleports the navigator there. |
void Stop() | Cancels any pending request and finishes the current path, raising TargetReached if one was running. |
Vector3 TeleportTo(Vector3 position, bool isSnappingY) | Drops the current path and finishes at the position. Without Y snapping only X and Z of the target change. |
void UpdatePosition() | Advances along the current path part, refreshing Position, Corners, NextPoint and FollowingPoint; re-paths if needed. |
void Wander(Vector3 near, int searchLength, Vector3 idealDirection, int bestOf, float targetReachedDistance = 0.1) | Picks a random reachable point within a search length (optionally the best of several towards a direction) and paths there. |
void Wander(Vector3 near, int searchLength, float targetReachedDistance = 0.1) | Picks a random reachable point within a search length (optionally the best of several towards a direction) and paths there. |
void Wander(int searchLength, float targetReachedDistance = 0.2) | Picks a random reachable point within a search length (optionally the best of several towards a direction) and paths there. |
protected virtual void Awake() | Grabs the Seeker on the same object and sets GetTarget to return the last target. |
protected virtual void OnDisable() | Stops any path and unhooks from the seeker. |
protected virtual void OnEnable() | Hooks the seeker's path callback. |