clamp value of all easings by default

This commit is contained in:
goat 2024-12-29 16:53:16 +01:00
parent 2e77e90532
commit 1aada98393
17 changed files with 41 additions and 35 deletions

View file

@ -19,6 +19,6 @@ public class InOutCubic : Easing
public override void Update()
{
var p = this.Progress;
this.Value = p < 0.5 ? 4 * p * p * p : 1 - (Math.Pow((-2 * p) + 2, 3) / 2);
this.ValueUnclamped = p < 0.5 ? 4 * p * p * p : 1 - (Math.Pow((-2 * p) + 2, 3) / 2);
}
}