Garry's Mod Wiki
An easing library that allows you to interpolate with various kinds of smoothing functions. To use with Lerp, input what you would to the fraction argument in one of these easing functions and then the output of that into the Lerp fraction argument.
Example
Example usage with Lerp and math.ease.InSine
Output: 0.076120467488713
0.25
0.38060233744357
1.25
Example
A brief visual example of different easing methods

Methods
Eases in by reversing the direction of the ease slightly before returning.
Note: 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.
Eases in like a bouncy ball.
Note: 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.
Eases in like a rubber band.
Note: 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.
Eases in using an exponential equation with a base of 2 and where the fraction is used in the exponent.
Eases in and out by reversing the direction of the ease slightly before returning on both ends.
Note: 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.
Eases in and out like a bouncy ball.
Note: 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.
Eases in and out by cubing the fraction.
Eases in and out like a rubber band.
Note: 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.
Eases in and out using an exponential equation with a base of 2 and where the fraction is used in the exponent.
Eases in and out by raising the fraction to the power of 4.
Eases in and out by raising the fraction to the power of 5.
Eases out by reversing the direction of the ease slightly before finishing.
Note: 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.
Eases out like a bouncy ball.
Note: 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.
Eases out like a rubber band.
Note: 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.
Eases out using an exponential equation with a base of 2 and where the fraction is used in the exponent.
This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.
Page content is automatically updated four times a day. Edits and history are not available.
Last Parsed: Loading...