added getLastMovementDirection(). closes #47