Easing Functions

An asset by Ferdiu
The page banner background of a mountain and forest
Easing Functions hero image

Quick Information

0 ratings
Easing Functions icon image
Ferdiu
Easing Functions

Bring the powerful easing functions to godot

Supported Engine Version
3.2
Version String
1.0
License Version
MIT
Support Level
community
Modified Date
4 years ago
Git URL
Issue URL

Easing functions for Godot (v3.2.x)

README LOGO

Bring the powerful easing functions to godot

Usage

Copy the script in your project resource folder and call them as:

Easing.[TYPE].[FUNC](t, b, c, d)

or for Vector2 object:

EasingV2.[TYPE].[FUNC](t, b, c, d)

or for Vector3 object:

EasingV3.[TYPE].[FUNC](t, b, c, d)

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

  • Back
  • Bounce
  • Circ
  • Cubic
  • Elastic
  • Expo
  • Linear
  • Quad
  • Quart
  • Quint
  • Sine

FUNC available

  • EaseIn
  • EaseOut
  • EaseInOut
  • EaseOutIn
  • EaseNone (just for Linear type)

(For Linear type all FUNC are the same)

Useful resources

Bring the powerful easing functions to godot

Reviews

0 ratings

Your Rating

Headline must be at least 3 characters but not more than 50
Review must be at least 5 characters but not more than 500
Please sign in to add a review

Quick Information

0 ratings
Easing Functions icon image
Ferdiu
Easing Functions

Bring the powerful easing functions to godot

Supported Engine Version
3.2
Version String
1.0
License Version
MIT
Support Level
community
Modified Date
4 years ago
Git URL
Issue URL

Open Source

Released under the AGPLv3 license

Plug and Play

Browse assets directly from Godot

Community Driven

Created by developers for developers