Use a list of vector2 for MoveEffect

This commit is contained in:
Lukas Klingsbo
2020-10-04 21:26:04 +02:00
committed by Lukas Klingsbo
parent 6432f00a60
commit 079828a6f8
4 changed files with 25 additions and 20 deletions

View File

@ -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()) {