Changes between Version 4 and Version 5 of Ticket #1823, comment 1
- Timestamp:
- Jan 15, 2013, 11:30:47 PM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #1823, comment 1
v4 v5 1 1 Attached 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'. 2 2 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 thisin turn disables the walking animation.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), which in turn disables the walking animation. 4 4 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.5 Why `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.