Skip to content

Linear movement in Manim #3275

Answered by uwezi
VladislavKorecky asked this question in Q&A
Discussion options

You must be logged in to vote

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

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@VladislavKorecky
Comment options

Answer selected by VladislavKorecky
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants