Wander
Wander(float, float, float, float, float)
public bool Wander(float speed, float radius, float distance, float jitter, float stoppingDistance) ;
Description
Wander the Agent
Parameters
Parameter Name | Description |
---|---|
speed | Speed to move |
radius | The wandering radius. |
distance | The wandering distance. |
jitter | The maximum value of random displacement that determines the destination. |
stoppingDistance | Stopping distance |
Returns
Returns true if the destination setting is successful. Otherwise false.
Remarks
The destination of the wandering is the point on the Radius circle centered on the agent's forward distance
Where on the circle is randomly displaced by Jitter.