Garry's Mod Wiki

math.ease.InOutBack

  number math.ease.InOutBack( number fraction )

Description

Eases in and out by reversing the direction of the ease slightly before returning on both ends.

This doesn't work properly when used with Lerp as it clamps the fraction between 0 and 1. Using your own version of Lerp that is unclamped would be necessary instead.

Arguments

1 number fraction
Fraction of the progress to ease, from 0 to 1

Returns

1 number
"Eased" Value