Use rate function on MoveAlongPath

This commit is contained in:
Grant Sanderson 2023-12-02 21:28:22 -06:00
parent dcf3eb8416
commit f8fedffa4c

View file

@ -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)