From 37e632145a81c71a577178bd681d11e95220ee18 Mon Sep 17 00:00:00 2001 From: Martin Svanberg Date: Wed, 21 Feb 2024 00:26:40 +0100 Subject: [PATCH] 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. --- 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,