Linear movement in Manim #3275
-
I started learning Manim when I realized that the MotionTest.mp4 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
That is the normal behavior in Manim. Animations use a "smooth" timescale which first accelerates and then decelerates by default. If you add the following option to your More about the different rate functions and their use you will find in the documentation at https://docs.manim.community/en/stable/reference/manim.utils.rate_functions.html?highlight=rate_func linMove.mp4There are plenty of other ways to ensure a pure linear movement or even controlled and accurate accelerated movement, more about which you could learn on the Discord server keepOnMoving.mp4AllUpdaterTypes.mp4 |
Beta Was this translation helpful? Give feedback.
That is the normal behavior in Manim. Animations use a "smooth" timescale which first accelerates and then decelerates by default. If you add the following option to your
self.play()
then a linear timescale will be used:rate_func=rate_functions.linear
.More about the different rate functions and their use you will find in the documentation at https://docs.manim.community/en/stable/reference/manim.utils.rate_functions.html?highlight=rate_func
linMove.mp4
There are plenty of other ways to ensure a pure linear movement or even controlled and accurate accelerated movement, more about which you could learn on the Discord server
keepOnMoving.mp4
AllUpdaterTypes.mp4