resetRotationDirections method

void resetRotationDirections()

Resets the rotation directions for mixing this entry's rotate timelines. This can be useful to avoid bones rotating the long way around when using alpha and starting animations on other tracks.

Mixing involves finding a rotation between two others, which has two possible solutions: the short way or the long way around. The two rotations likely change over time, so which direction is the short or long way also changes. If the short way was always chosen, bones would flip to the other side when that direction became the long way. TrackEntry chooses the short way the first time it is applied and remembers that direction.

Implementation

void resetRotationDirections() {
  _bindings.spine_track_entry_reset_rotation_directions(_entry);
}