HomeWildfire Games

UnitMotion / AI - remove the special 'move' animation, make UnitMotion inform…

Description

UnitMotion / AI - remove the special 'move' animation, make UnitMotion inform the visual actor directly.

Use UpdateMovementState to inform the visual actor of the unit's speed, which cill update the movement animation accordingly.
The removes the need for UnitAI to handle movement animation using the special "move" state.

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

Event Timeline

Silier added a subscriber: Silier.Jun 5 2020, 3:59 PM
Silier added inline comments.
/ps/trunk/binaries/data/mods/public/simulation/components/UnitAI.js
3063

It would be here.
Reported by elexis:

`<elexis> wraitii Freagarach and whomever worked with UnitAI, there is a small regression in svn compared to a23b: when changing perspective to gaia and sending a move order to a non-domestic gaia animal, the animal will have an animation-reset and not perform any order, whereas in a23b it only didnt perform any order without animation reset. perhaps you can identify the commit
`