Publisher
ferdiu
Easing Functions
Bring the powerful easing functions to godot
This plugin has been mirrored from the Godot Asset Library.
The plugin author is in no way affiliated with Gadget.
If you are the author of this plugin and would like this mirror removed, please contact support@gadgetgodot.com.
Easing functions for Godot (v3.2.x)
![]()
Bring the powerful easing functions to godot
Usage
Copy the script in your project resource folder and call them as:
Easing.[TYPE].FUNC
or for Vector2 object:
EasingV2.[TYPE].FUNC
or for Vector3 object:
EasingV3.[TYPE].FUNC
inside your code.
Sorry about using different class names for each data type but GDScript does not support (at this time) Function Overloading.
example:
var t = 0
func _process(delta):
t += delta
position.x = Easing.Expo.EaseOut(t, 0.0, 100.0, 3.0)
this moves on the x axis an object from position 0.0 to position 100.0 in 3 seconds decreasing the speed exponentially.
TYPE available
BackBounceCircCubicElasticExpoLinearQuadQuartQuintSine
FUNC available
EaseInEaseOutEaseInOutEaseOutInEaseNone(just forLineartype)
(For Linear type all FUNC are the same)
Useful resources
- Preview easing functions (https://easings.net/)
- Original Robert Penner's Easing Functions at http://robertpenner.com/easing/
- Original Terms of Use: http://robertpenner.com/easing_terms_of_use.html