bevy_tweening

v0.16.0

Tweening animation plugin for the Bevy game engine

Profile

What problem does this crate solve?

Tweening is the gamedev's favorite. This means gradually changing values either linearly or following some sort of curve. Consequently, this is the best way to make anything transition smoothly while avoiding to think about complex math. Think bouncing, rotating, growing of an enemy, ... This crate is the epitome of that: It allows tweening any value in any field on any component!

Features

  • Tween any field
  • Easing curves
  • Fire an event on finishing the tween
  • Repeating
  • Queuing

Showcase

Plenty of nice examples are given in the example gifs, showing scale, rotation, speed, and more tweens.

Get started

Clone the repo and run this example

cargo run --example sequence --features="bevy/bevy_winit"

Many effects are combined here, so you can nicely see in the code how they all work

Screenshots

Reviews (1)

ffmulks 6 days ago

This crate saved me 500 lines of handrolled animations throughout the game!

Downloads 168345
Cages 1
Rating
5.0 / 5
1 review
License MIT OR Apache-2.0
Added by ffmulks
Owner
djeedai