BMG Tools

Tweening Equations

Five ease curves for UI and motion

GitHub

The helpers behind menus and motion in Compactory and Arctric Slopes. Five C# curves for floats and vectors — Ease In, Ease Out, Ease In-Out, Up and Back, and Back and Up.

Playing

Ease Out

Leaves fast, lands soft.

EaseOut(start, end, t, power: 2)

Compare

How it was built

Static helpers on MovementEquations. Each curve maps a 0–1 time to a value, then LerpUnclamped carries floats and Vector2/3/4 so overshoot is not clipped. Ease In, Out, and In-Out take a power. Back and Up takes a backFactor; Up and Back takes an upFactor — the default is 0 (smoothstep); the stage uses 1 so the overshoot reads.

The hard parts

Mathf.Lerp clamps past 0 and 1, which would hide the two extra curves. These helpers use LerpUnclamped so Up and Back can overshoot and Back and Up can pull behind the start. Linear is not a MovementEquations method — it is just lerp, drawn as a ghost so you can see the deviation.