HomeWildfire Games

Fix UnitMotion updating the visual Actor with the target speed, not the real…

Description

Fix UnitMotion updating the visual Actor with the target speed, not the real speed.

Fixes D1901 / rP22446

Noted by bb also in D3021

Reviewed By: Freagarach

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

Event Timeline

Should have figured that, but this looks a bit odd with formations, because units start using the "run" animation as soon as the formation turns slightly. Probably need a little leeway to avoid that.

Silier added a subscriber: Silier.Dec 15 2020, 7:24 PM

but thats, what happens, or no ?
they allways run to catch the formation

In rP24396#46156, @Angen wrote:

but thats, what happens, or no ?
they allways run to catch the formation

Yes, but try it for yourself, it looks flickery because it sometimes happens for very small rotations. I need to change it to "speed > m_WalkSpeed * 1.2" or something.