You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
455 B
17 lines
455 B
from manim import *
|
|
|
|
|
|
class MovingGroupToDestination(Scene):
|
|
def construct(self):
|
|
group = VGroup(
|
|
Dot(LEFT), Dot(ORIGIN), Dot(
|
|
RIGHT, color=RED), Dot(
|
|
2 * RIGHT)).scale(1.4)
|
|
dest = Dot([4, 3, 0], color=YELLOW)
|
|
self.add(group, dest)
|
|
self.play(
|
|
group.animate.shift(
|
|
dest.get_center() -
|
|
group[2].get_center()))
|
|
self.wait(0.5)
|