4 releases (2 breaking)

0.3.0 Jul 7, 2024
0.2.1 Apr 5, 2024
0.2.0 Apr 4, 2024
0.1.0 Feb 23, 2024

#13 in #interpolation

Download history 259/week @ 2024-03-31 345/week @ 2024-04-07 229/week @ 2024-04-14 429/week @ 2024-04-21 261/week @ 2024-04-28 233/week @ 2024-05-05 219/week @ 2024-05-12 144/week @ 2024-05-19 253/week @ 2024-05-26 229/week @ 2024-06-02 232/week @ 2024-06-09 233/week @ 2024-06-16 248/week @ 2024-06-23 258/week @ 2024-06-30 324/week @ 2024-07-07 114/week @ 2024-07-14

963 downloads per month
Used in bevy_tween

MIT/Apache

79KB
1.5K SLoC

bevy_lookup_curve 📈

github Latest version Documentation MIT Apache

Editable lookup curve for Bevy that can be used for many things, for example:

  • Animation
  • Gameplay progressiom (control different aspects over time or other variables)
  • Physics (for example: tweakable feel on a character controller)
  • Probability control (for item drops etc)
  • Shaders
  • ... just about anything where you need a formula (x -> y) that you can fine tune, with a GUI instead of diving into math

If you have used AnimationCurve in Unity, this would be an attempt at something similar for Bevy.

Features

  • LookupCurve type with modifiable knots and tangents. Three types of interpolation: Constant, Linear, and Cubic
  • Asset loader and save functionality
  • Egui based editor
  • Integration with bevy-inspector-egui for quick and easy tweaking

https://github.com/villor/bevy_lookup_curve/assets/7102243/180aed95-ca9a-4e3b-97c4-2516055ea648

Usage

See examples for now

Feature flags

Feature Default Description
editor Yes Enables the egui-based editor
inspector-egui No Integration with bevy-inspector-egui

Bevy support

bevy bevy_lookup_curve
0.14 0.3
0.13 0.1-0.2

Contributing

Contributions are welcome. Feel free to make a PR!

License

Dual-licensed under either:

Dependencies

~20–60MB
~1M SLoC