capturePreviousWithRotation method
Like capturePrevious, but with rotation as the previous rotation
instead of the current one: for a system that moves the entity while
gameplay turns it before the step (a character mover), so the
previous rotation is the one it kept from the end of the last step.
Implementation
void capturePreviousWithRotation(Quaternion rotation) {
prevPosition.setFrom(position);
prevRotation
..setFrom(rotation)
..normalize();
_scratch.setValues(_ex, _ey, _ez);
prevRotation.eulerInto(_scratch, hint: _scratch);
prevAngle = _scratch.z;
_prevPlanar = false;
_counted();
}