HomeWildfire Games

UnitMotion - account for target's movement in ComputeTargetPosition (improve…

Description

UnitMotion - account for target's movement in ComputeTargetPosition (improve chasing behaviour).

After the recent UM changes, units sometimes chase/flee forever as they can never actually get in range.
This is because moving to the current target's position is not enough when the target is moving.

By accounting for the target movement's in ComputeTargetPosition, the behaviour is much improved.

Differential Revision: https://code.wildfiregames.com/D1987