# IWayPoint

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

This Interface inherits from [**IAITarget**](https://malbersanimations.gitbook.io/animal-controller/interfaces/iaitarget)

## 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.
