Skip to content

Instantly share code, notes, and snippets.

@jaddoescad
Created March 9, 2019 23:53
Show Gist options
  • Save jaddoescad/256cba7c08a64a35bb779d2ac010f504 to your computer and use it in GitHub Desktop.
Save jaddoescad/256cba7c08a64a35bb779d2ac010f504 to your computer and use it in GitHub Desktop.
move vector with manim
from big_ol_pile_of_manim_imports import *
# Move shapes
class MoveVector(Scene):
def construct(self):
vector = Vector(direction=RIGHT)
end_point = (4,0,0)
animation = ApplyMethod(vector.shift,end_point)
self.play(animation)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment