The front axis and the up axis of the object are chosen in lists (+X by default for the front, +Z for the up). The front axis points toward the target. By default, the rotation around the front axis is kept, so that it adds up with the other actions; otherwise the up axis points as much as possible toward the Z axis of the scene.