Skip to content

clockworklabs/Motion

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

75 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Motion

Motion is an animation library for Unity. It has support for Tween and physics-based Spring animations as well as countdowns.

To create a Tween Animation, you just need to call DoMotion.Tween(getter, setter, target, duration). There are many overloads for different types and arguments. Tweens have a specific duration and follow an Ease curve.

To create a Spring Animation, you just need to call DoMotion.Spring(getter, setter, target). Springs act like springs in the real world. This yields natural looking results.

Both Tween and Spring can be set up to repeat with the chain method Repeat. There are many other chain methods available, like Delay, SetInitialVelocity, SetEase, OnStep, OnComplete ...

To create a countdown, you just need to call DoMotion.Countdown(duration, callback). The callback is called when the countdown reaches 0.

DoMotion needs to be stepped. You can manually call DoMotion.Step(deltaTime) or simply add the MotionAutoStep component to a GameObject in your scene.

Springs

If you're new to Spring animations, these are great resources to start with:

Installation

Installing Motion is simple. You can add the package via the Unity Package Manager using the Git URL, or by modifying your manifest.json file directly.

Add the following package URL: https://github.com/clockworklabs/Motion#[target-version] (latest is 1.8.0).

About

Animations library for Unity

Resources

License

MIT, Unknown licenses found

Licenses found

MIT
LICENSE
Unknown
LICENSE.meta

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages