Evade

Evade(float, float, MovingEntity, float)

public bool Evade(float speed, float distance, MovingEntity target, float distanceToCorner) ;

Description

Move to escape in consideration of the movement velocity of Target.

Parameters

Parameter Name Description
speed Speed to move
distance Distance away
target Target MovingEntity
distanceToCorner The distance to determine the vicinity of the corner.
Used to detour corners so that you can't be cornered by the wall

Returns

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