- Oct 02, 2022
-
-
Jerome Humbert authored
Clarify testing code and potential assertions message with the use of a new `assert_approx_eq!()` macro for `f32` equality check with a tolerance. The macro leverages `abs_diff_eq()` but produces a better assertion message in case of failure. It also allows skipping the tolerance parameter to use the default of `1e-5`, which is the "standard" tolerance to use for progress and other small-ish values that are expected to be equal but might be slightly off due to rounding errors. This change ignores the complications of testing for floating-point equality in a generic way, which is too complex, and instead restrict the usage to values like progress (range [0:1]) and other small position values around the origin.
-
shuo authored
-
- Oct 01, 2022
-
-
Jerome Humbert authored
Add some tests to fill gaps for: - `UiPositionLens` - `Animator::set_tweenable()` and `AssetAnimator::set_tweenable()` - `Sequence::from_single()` - `Delay`'s `then()`, `times_completed()`, and `set_progress()`
-
Jerome Humbert authored
Fix the animator speed applying, which got broken as part of the refactor of #44. Add a `speed()` getter to both `Animator<T>` and `AssetAnimator<T>`. Add some simple test for speed, but this is not enough to make sure the feature doesn't regress, so logged #62 to follow-up with a proper regression test. Fixes #61
-
- Sep 29, 2022
-
-
Jerome Humbert authored
Make it easy to exit an example with the ESC key by adding the built-in `bevy::window::close_on_esc()` system to all examples.
-
- Sep 28, 2022
-
-
Jerome Humbert authored
Fix the repeat mode being broken after the first iteration due to `AnimClock::progress()` reporting a progress greater than `1.`, which was breaking the logic of `Tween` and `Lens`. Also fix `Tween::rewind()` not restoring the original tween direction when using a repeat strategy of `RepeatStrategy::MirroredRepeat`. Fixes #42
-
- Sep 27, 2022
-
-
Jerome Humbert authored
Make `Delay::new()` panic if a zero duration is passed as argument. Fix the `menu` example to skip inserting a `Sequence<Transform>` containing a zero-duration `Delay`. Bug: #41
-
- Sep 21, 2022
-
-
Jerome Humbert authored
Upgrade `tarpaulin` to 0.21.0 to work around what looks like a bug in coverage report. Fixes #55
-
- Aug 12, 2022
-
-
Alex Saveau authored
-
- Aug 06, 2022
-
-
Alex Saveau authored
-
Franz Dietrich authored
-
- Aug 04, 2022
-
-
Jerome Humbert authored
This reverts commit f7647405.
-
Jerome Humbert authored
This reverts commit 971edb62.
-
Jerome Humbert authored
This reverts commit 87ac60b2.
-
Jerome Humbert authored
-
Jerome Humbert authored
-
Jerome Humbert authored
Upgrade to the latest released version 0.8.0 of Bevy. Add a new `bevy_asset` feature to enable animation of Bevy assets (types implementing the `Asset` trait). Bevy 0.8 does not contain `bevy_asset` in its defaul features, so this new feature reflects that new possibility to build Bevy and í½ Bevy Tweening without support for the `bevy_asset` crate. The new feature is enabled by default for discoverability and to prevent a behavior breaking change.
-
Jerome Humbert authored
This reverts commit 6a871576.
-
Jerome Humbert authored
This reverts commit 77b56f44.
-
Jerome Humbert authored
This reverts commit 722b62ec.
-
- Aug 03, 2022
-
-
Jerome Humbert authored
-
Gyrobifastigium authored
-
Alex Saveau authored
Remove `TweeningType` and split its functionalities between a new `RepeatCount` controlling the number of repeats of an animation on one hand, and `RepeatStrategy` controlling the way an animation restarts after a loop ended on the other hand. This allows more granular control on the type of playback. Remove the `tweening_type` parameter from `Tween<T>::new()` and replace it with builder methods `with_repeat_count()` and `with_repeat_strategy()`. Remove `is_looping()` from all tweenables, which was not implemented for most of them anyway.
-
- Jul 10, 2022
-
-
Alex Saveau authored
Signed-off-by:
Alex Saveau <saveau.alexandre@gmail.com>
-
- Jun 14, 2022
-
-
Alex Saveau authored
-
- Jun 01, 2022
-
-
Alex Saveau authored
Fix double-boxing by removing the `IntoBoxDynTweenable` trait and the impl of `Tweenable<T>` for `Box<dyn Tweenable>`, and instead using some `From` conversion implemented per concrete type.
-
- May 31, 2022
-
-
Alex Saveau authored
-
- May 17, 2022
-
-
Alex Saveau authored
-
Alex Saveau authored
This lets you not have to run after every single system and instead just pass in the label.
-
- May 14, 2022
-
-
Alex Saveau authored
It needs to be built-in because otherwise you have to completely recreate the animation to change the speed.
-
- May 07, 2022
-
-
Alex Saveau authored
-
- Apr 24, 2022
-
-
Jerome Humbert authored
Allow a `Tween` to play backward by setting its direction with `Tween::set_direction()`.
-
- Apr 23, 2022
-
-
Nathan Wilson authored
-
Jerome Humbert authored
Upgrade the version of `bevy-inspector-egui` to `0.10` for Bevy v0.7 compatibility, otherwise the examples were building with Bevy v0.6. Fix the examples which now build correctly with Bevy v0.7.
-
Jerome Humbert authored
Change the example in the `lib.rs` module documentation to not rely on the `bevy_sprite` feature, to allow building cleanly with the `--no-default-features` flag. Replace the use of `SpriteBundle` with `TransformBundle`, which is not behind a feature flag so is alway available.
-
- Apr 16, 2022
-
-
Jerome Humbert authored
-
- Mar 19, 2022
-
-
Nathan Wilson authored
-
Jerome Humbert authored
-
Jerome Humbert authored
Enable minimal dependencies with new features `bevu_sprite` and `bevy_ui`, removing the `bevy/render` mandatory dependency. Those new features are enabled by default, and enable the built-in lenses for the related Bevy crates. The core `bevy_tweening` crate itself does not take any optional Bevy dependency anymore, allowing for a slim build with only the core Bevy functionalities.
-
- Mar 05, 2022
-
-
Jerome Humbert authored
-