Page MenuHomeWildfire Games

UnitMotion - Change "Possibly At Destination" logic.
Needs ReviewPublic

Authored by wraitii on Wed, May 15, 10:56 PM.


Group Reviewers
Restricted Owners Package(Owns No Changed Paths)

PossiblyAtDestination checks if we have (probably) arrived in three ways:

  • if we are a formation member: is the formation controller is arrived
  • if we aren't, and we are not following a moving entity, assume out of waypoint == at destination
  • if we aren't, and we are following a moving entity, check if need to move again.

This logic is weird and a bit broken, and instead we should use range checks from D981.
It also requires us to be moving to make sense, which prevents removing m_State.

Test Plan

Compile, run the game and check out unit behaviour.

Diff Detail