From f8fedffa4c4aefb18bf736067fdbe62da2b9d073 Mon Sep 17 00:00:00 2001 From: Grant Sanderson Date: Sat, 2 Dec 2023 21:28:22 -0600 Subject: [PATCH] Use rate function on MoveAlongPath --- manimlib/animation/movement.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manimlib/animation/movement.py b/manimlib/animation/movement.py index 410c15c3..c208aea9 100644 --- a/manimlib/animation/movement.py +++ b/manimlib/animation/movement.py @@ -114,5 +114,5 @@ class MoveAlongPath(Animation): super().__init__(mobject, suspend_mobject_updating=suspend_mobject_updating, **kwargs) def interpolate_mobject(self, alpha: float) -> None: - point = self.path.quick_point_from_proportion(alpha) + point = self.path.quick_point_from_proportion(self.rate_func(alpha)) self.mobject.move_to(point)