mirror of
https://github.com/flame-engine/flame.git
synced 2025-11-02 11:43:19 +08:00
Use a list of vector2 for MoveEffect
This commit is contained in:
committed by
Lukas Klingsbo
parent
6432f00a60
commit
079828a6f8
@ -60,7 +60,7 @@ abstract class PositionComponentEffect {
|
||||
if (isAlternating) {
|
||||
curveDirection = isMax() ? -1 : (isMin() ? 1 : curveDirection);
|
||||
} else if (isInfinite && isMax()) {
|
||||
reset();
|
||||
currentTime = 0.0;
|
||||
}
|
||||
final driftMultiplier = (isAlternating && isMax() ? 2 : 1) * curveDirection;
|
||||
if (!hasFinished()) {
|
||||
|
||||
Reference in New Issue
Block a user