Fix incorrect math

This commit is contained in:
Dean Herbert 2018-01-18 21:16:15 +09:00
parent 065d2a4887
commit 1a83770a06
1 changed files with 1 additions and 1 deletions

View File

@ -73,6 +73,6 @@ protected override void UpdateCurrentState(ArmedState state)
}
}
public void UpdateSnakingPosition(Vector2 start, Vector2 end) => Position = repeatPoint.RepeatIndex / 2 == 0 ? end : start;
public void UpdateSnakingPosition(Vector2 start, Vector2 end) => Position = repeatPoint.RepeatIndex % 2 == 1 ? start : end;
}
}