mirror of
https://github.com/flame-engine/flame.git
synced 2025-11-02 20:13:50 +08:00
Fix bug with absolute rotation
This commit is contained in:
committed by
Lukas Klingsbo
parent
47aba31eff
commit
7e9d9df168
@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user