Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gamereat/EasingFunction-Unity
Implementation of Easing Functions within unity in c#
https://github.com/gamereat/EasingFunction-Unity
Last synced: about 2 months ago
JSON representation
Implementation of Easing Functions within unity in c#
- Host: GitHub
- URL: https://github.com/gamereat/EasingFunction-Unity
- Owner: gamereat
- Created: 2017-10-07T09:12:48.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-04-16T17:08:08.000Z (over 6 years ago)
- Last Synced: 2024-08-03T19:09:50.088Z (5 months ago)
- Language: C#
- Size: 22.5 KB
- Stars: 40
- Watchers: 5
- Forks: 9
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-unity-open-source-on-github - EasingFunction-Unity - Implementation of Easing Functions within unity in c# (Easing)
README
# Easing Functions For C# and Unity
Implementation of Easing Functions within Unity in C#Sine, Quad, Cubic, Quint, Expo, Circ, Back, Elastic & Bounce each with there in and out variants.
# Usage
All easing functions can be called from the following static function
EasingLerps.EasingLerp(EasingLerpsType type, EasingInOutType inOutType, float time, float a, float b)
Where
type being type of easing to use (Sine, Quad ect)
inOutType being which variant for use
time being the time between 0 and 1
a being the start lerp value
b being the ending lerp valuewith it returning a float value between a and b for the given time value.
# Demo
All functionality can be played around with from the EasingLerpExample example scene.
Loading and playing this scene will allow you to jump between each type of easing function along with it's in & out variation.
# License
Developed by Alan Yeats with a zlib license. While the zlib license does not require acknowledgement.