Comment 1 for bug 966743

Revision history for this message
Sean Eubanks (kkaos) wrote :

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.