mirror of
https://github.com/bevyengine/bevy
synced 2024-11-10 07:04:33 +00:00
Fix docs for quaternion interpolation (#12014)
# Objective The docs currently state that it's doing an nlerp, which is not true. ## Solution Docs now describe the implementation.
This commit is contained in:
parent
dc25edd0a2
commit
37e632145a
1 changed files with 1 additions and 2 deletions
|
@ -142,8 +142,7 @@ impl Animatable for Transform {
|
|||
}
|
||||
|
||||
impl Animatable for Quat {
|
||||
/// Performs an nlerp, because it's cheaper and easier to combine with other animations,
|
||||
/// reference: <http://number-none.com/product/Understanding%20Slerp,%20Then%20Not%20Using%20It/>
|
||||
/// Performs a slerp to smoothly interpolate between quaternions.
|
||||
#[inline]
|
||||
fn interpolate(a: &Self, b: &Self, t: f32) -> Self {
|
||||
// We want to smoothly interpolate between the two quaternions by default,
|
||||
|
|
Loading…
Reference in a new issue