Changes between Version 4 and Version 5 of Ticket #1823, comment 1


Ignore:
Timestamp:
Jan 15, 2013, 11:30:47 PM (11 years ago)
Author:
zoot

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #1823, comment 1

    v4 v5  
    11Attached above (unitslide.tar.gz) is a savegame (and its corresponding map) in which a unit will begin 'sliding' a few seconds after loading. The unit has entity ID '46'.
    22
    3 Just before the unit begins sliding, [https://github.com/0ad/0ad/blob/master/binaries/data/mods/public/simulation/components/UnitAI.js#L2712 OnMotionChanged] is invoked on its UnitAI, and this subsequently leads to the unit entering a "FORMATIONMEMBER.IDLE" state prematurely (while it is still moving), and this in turn disables the walking animation.
     3Just before the unit begins sliding, [https://github.com/0ad/0ad/blob/master/binaries/data/mods/public/simulation/components/UnitAI.js#L2712 OnMotionChanged] is invoked on its UnitAI, and this subsequently leads to the unit entering a "FORMATIONMEMBER.IDLE" state prematurely (while it is still moving), which in turn disables the walking animation.
    44
    5 Why `OnMotionChanged` is invoked, I don't know, but it appears to due to some kind of failure in `UnitMotion` because of the unit's path 'colliding' with a house.
     5Why `OnMotionChanged` is invoked, I don't know, but it appears to be due to some kind of failure in `UnitMotion` because of the unit's path 'colliding' with a house.