Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release notes for stable interpolation #1830

Merged
merged 3 commits into from
Nov 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
When animating cameras or programming unit AI (not that kind of AI!), moving something continuously towards a target is an essential basic operation.
Simply [lerping] to the target seems easy enough, but as [Freya Holmer explains],
making sure that this interpolation is timestep independent is both vital and surprisingly tricky.

We've done the math for you; you just need to use the [`StableInterpolate`] trait's `interpolate_stable` and `smooth_nudge` methods
and tune the `decay_rate` parameter to really optimize your _game feel_.
Fear not: it even works on quaternions!
Stable, smooth camera controllers have never been easier.

[lerping]: https://en.wikipedia.org/wiki/Linear_interpolation
[Freya Holmer explains]: https://www.youtube.com/watch?v=LSNQuFEDOyQ
[`StableInterpolate`]: https://docs.rs/bevy/0.15.0-rc.3/bevy/math/trait.StableInterpolate.html
7 changes: 7 additions & 0 deletions release-content/0.15/release-notes/_release-notes.toml
Original file line number Diff line number Diff line change
Expand Up @@ -417,3 +417,10 @@ authors = ["@tychedelia"]
contributors = ["@IceSentry"]
prs = [14663]
file_name = "14663_shader_storage_buffer.md"

[[release_notes]]
title = "Stable interpolation and smooth following"
authors = ["@mweatherley"]
contributors = []
prs = [13741]
file_name = "13741_Stable_interpolation_and_smooth_following.md"