Follow
Follow(float, float, Vector3)
public void Follow(float speed, float stoppingDistance, Vector3 targetPosition) ;
Description
It approaches the specified position
Parameters
| Parameter Name | Description |
|---|---|
| speed | Movement speed |
| stoppingDistance | Stopping distance |
| targetPosition | Objective point |
Follow(float, float, Transform)
public void Follow(float speed, float stoppingDistance, Transform target) ;
Description
Approach to the position of the specified Transform
Parameters
| Parameter Name | Description |
|---|---|
| speed | Movement speed |
| stoppingDistance | Stopping distance |
| target | Objective point |