> For the complete documentation index, see [llms.txt](https://malbersanimations.gitbook.io/animal-controller/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://malbersanimations.gitbook.io/animal-controller/interfaces/iwaypoint.md).

# IWayPoint

This Interface is used by the  [**AI animal Control** ](/animal-controller/main-components/ai/ai-animal-control.md)logic to find positions and targets to move using a NavMesh AI Agent.

This Interface inherits from [**IAITarget**](/animal-controller/interfaces/iaitarget.md)

## Properties

### `Transform NextTarget()`

> Returns the Next Target associated to the Current Waypoint&#x20;

### `Transform WPTransform { get; }`

> returns the Transform associated to the WayPoint

### `float WaitTime { get; }`

> Wait time needed to go to the Next Waypoint

### `void TargetArrived(GameObject target)`

> This method should be called  when someone's arrives to the Waypoint.
