Pursuit
Pursuit(float, float, float, MovingEntity, Vector3)
public bool Pursuit(float speed, float stoppingDistance, float facingAngle, MovingEntity target, Vector3 offset) ;
Description
Move to track in consideration of the movement velocity of the target.
Parameters
Parameter Name | Description |
---|---|
speed | Speed to move |
stoppingDistance | Stopping distance |
facingAngle | Angle to judge whether they are facing each other When Target faces the Agent side and faces, move directly toward Target |
target | Target MovingEntity |
offset | Target's offset in the local coordinate system |
Returns
Returns true if the destination setting is successful. Otherwise false.