Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

Added warning for the usage of `animate` (#1247)

kolibril1360a9058e9693
diff --git a/manim/mobject/mobject.py b/manim/mobject/mobject.py
index e93970311..3ac4e6569 100644
--- a/manim/mobject/mobject.py
+++ b/manim/mobject/mobject.py
@@ -200,6 +200,12 @@ class Mobject(Container):
c.animate(rate_func=there_and_back).shift(RIGHT),
)
+ .. warning::
+
+ ``.animate``
+ will interpolate the :class:`~.Mobject` between its points prior to ``.animate`` and its points after applying ``.animate`` to it. This may result in unexpected behavior when attempting to interpolate along paths, or rotations.
+ If you want animations to consider the points between, consider using :class:`~.ValueTracker` with updaters instead.
+
"""
return _AnimationBuilder(self)