mirror of
https://github.com/bevyengine/bevy
synced 2024-11-22 12:43:34 +00:00
3ded59ed47
# Objective This example previously had kind of a needlessly complex state machine that tracked moves between its previous orientation and the new one that was randomly generated. Using `smooth_nudge` simplifies the example in addition to making good use of the new API. ## Solution Use `smooth_nudge` to transition between the current transform and the new one. This does away with the need to keep track of the move's starting position and progress. It also just sort of looks nicer. ## Testing Run the `align` example: `cargo run --example align` |
||
---|---|---|
.. | ||
3d_rotation.rs | ||
align.rs | ||
scale.rs | ||
transform.rs | ||
translation.rs |