BMG Tools

Tweening Equations

Utility · Motion curves · Used in Compactory and Arctric Slopes

Equations that help control the motion of objects or changes in values. Includes five types of movement, all with adjustable parameters: 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 Works

MovementEquations includes five static methods that each take in a start value, end value, normalized time, and any adjustment parameters. The methods return a value between start and end based on the inputted normalized time. It is up to the caller to handle normalized time.

The hard parts

Clamping

Since Mathf.Lerp clamps between 0 and 1, the Up and Back and Back and Up equations weren't originally supported. To support them, I added LerpUnclamped so those two could overshoot and pull behind the start.