CMO Animation Faces Wrong Way
Bug #966743 reported by
Russ Adams
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Asgard |
Fix Committed
|
High
|
Sean Eubanks |
Bug Description
Our CMO is facing the wrong way when she moves. You can reproduce this behavior by clicking to the left of the CMO. You see her start to walk leftwards, but her animation is walking rightwards.
To post a comment you must log in.
The CMO was "moonwalking". The main problem causing this issue was the use of world coordinates in computing the CMO's angle of movement, as opposed to its Drawable's Screen coordinates; this has been resolved. The algorithm for computing the angle of movement was also incorrect; this, too, has been resolved. Currently, angles are rounded to the nearest 45 degrees. With only Animations for moving east and west, angles of 0, 45, 90, and 315 degrees trigger the east-moving Animation; angles of 135, 180, 225, and 270 degrees trigger the west-moving Animation. It's not quite perfect, but the movement will look better once Animations for moving north and south are added.