MoveTo

MoveTo(float, float, Vector3)

public bool MoveTo(float speed, float stoppingDistance, Vector3 targetPosition) ;

Description

It approaches the specified position

Parameters

Parameter Name Description
speed Speed to move
stoppingDistance Stopping distance
targetPosition Objective point

Returns

Returns true if the destination setting is successful. Otherwise false.

MoveTo(float, float, Transform)

public bool MoveTo(float speed, float stoppingDistance, Transform target) ;

Description

Approach to the position of the specified Transform

Parameters

Parameter Name Description
speed Speed to move
stoppingDistance Stopping distance
target Objective point

Returns

Returns true if the destination setting is successful. Otherwise false.