Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use smooth_nudge in 2d_top_down_camera example (bevyengine#13907)
# Objective [`StableInterpolate`](https://dev-docs.bevyengine.org/bevy/math/trait.StableInterpolate.html) was introduced after this example was written (or more accurately, the two PRs were merged on the same day and developed in parallel). The example used `Vec3::lerp` where I believe it is now preferred to use `smooth_nudge`. ## Solution Its not entirely clear to me whether `StableInterpolate` should be preferred in this scenario, although it seems likely. So I figured a PR to make the change would either result in it being merged or denied with a reason. ## Testing ``` cargo run --example 2d_top_down_camera ``` Co-authored-by: François Mockers <mockersf@gmail.com>
- Loading branch information