Fix bug with absolute rotation

This commit is contained in:
Lukas Klingsbo
2020-10-03 23:12:11 +02:00
committed by Lukas Klingsbo
parent 47aba31eff
commit 7e9d9df168

View File

@ -32,7 +32,7 @@ class RotateEffect extends PositionComponentEffect {
endAngle = _comp.angle + radians;
}
_startAngle = component.angle;
_delta = isRelative ? radians : _startAngle + radians;
_delta = isRelative ? radians : radians - _startAngle;
travelTime = (_delta / speed).abs();
}