From d742d760df02e967611fa50a3c7f7a8a7a7a5d47 Mon Sep 17 00:00:00 2001 From: Martin Svanberg Date: Tue, 20 Feb 2024 22:47:47 +0100 Subject: [PATCH] Fix docs for Quaternion interpolation The docs currently state that it's doing an nlerp, which is not true. --- crates/bevy_animation/src/animatable.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/crates/bevy_animation/src/animatable.rs b/crates/bevy_animation/src/animatable.rs index 24b90316faa35..17e11bfe5fd2c 100644 --- a/crates/bevy_animation/src/animatable.rs +++ b/crates/bevy_animation/src/animatable.rs @@ -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: + /// 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,