Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions manim/scene/vector_space_scene.py
Original file line number Diff line number Diff line change
Expand Up @@ -704,7 +704,7 @@ def setup(self) -> None:
self.transformable_mobjects: list[Mobject] = []
self.moving_vectors: list[Mobject] = []
self.transformable_labels: list[MathTex] = []
self.moving_mobjects: list[Mobject] = []
self.vector_moving_mobjects: list[Mobject] = []

self.background_plane = NumberPlane(**self.background_plane_kwargs)

Expand Down Expand Up @@ -803,7 +803,7 @@ def add_moving_mobject(
What the moving_mobject goes to, etc.
"""
mobject.target = target_mobject
self.add_special_mobjects(self.moving_mobjects, mobject)
self.add_special_mobjects(self.vector_moving_mobjects, mobject)

def get_ghost_vectors(self) -> VGroup:
"""
Expand Down Expand Up @@ -1088,7 +1088,7 @@ def get_piece_movement(self, pieces: Iterable[Mobject]) -> Transform:
def get_moving_mobject_movement(self, func: MappingFunction) -> Transform:
"""
This method returns an animation that moves a mobject
in "self.moving_mobjects" to its corresponding .target value.
in "self.vector_moving_mobjects" to its corresponding .target value.
func is a function that determines where the .target goes.
Comment on lines 1089 to 1092

Parameters
Expand All @@ -1103,13 +1103,13 @@ def get_moving_mobject_movement(self, func: MappingFunction) -> Transform:
Animation
The animation of the movement.
"""
for m in self.moving_mobjects:
for m in self.vector_moving_mobjects:
if m.target is None:
m.target = m.copy()
temp: Point3D = m.get_center()
target_point = func(temp)
m.target.move_to(target_point)
return self.get_piece_movement(self.moving_mobjects)
return self.get_piece_movement(self.vector_moving_mobjects)

def get_vector_movement(self, func: MappingFunction) -> Transform:
"""
Expand Down
Loading