MoveToRandomPosition
MoveToRandomPosition(Vector3, float, float, float)
public void MoveToRandomPosition(Vector3 center, float speed, float radius, float stoppingDistance) ;
Description
Move towards a random position within a specified radius
Parameters
Parameter Name | Description |
---|---|
center | Center |
speed | Movement speed |
radius | Radius from the starting position |
stoppingDistance | Stopping distance |
MoveToRandomPosition(float, float, float)
public void MoveToRandomPosition(float speed, float radius, float stoppingDistance) ;
Description
Move from the start position to a random position within the specified radius
Parameters
Parameter Name | Description |
---|---|
speed | Movement speed |
radius | Radius from the starting position |
stoppingDistance | Stopping distance |