Describe the bug : the method of move_to can't move horizontally,Run the following code and you will find that the objects on the screen do not move completely horizontally, but are offset downwards. What is going on?
#vscode: 1.83.1
#python: 3.10
#manimgl: 1.6.1
from manimlib import*
class twosquare(Square):
def __init__(self,**kwargs):
super().__init__(side_length=1,**kwargs)
self.UP_square=Square(side_length=1)
self.UP_square.next_to(self,UP,aligned_edge=DOWN,buff=0)
self.add(self.UP_square)
class MyScene(Scene):
def construct(self):
self.add(NumberPlane().fade(0.8))
square_two = twosquare()
self.add(square_two)
self.wait(2)
self.play(square_two.animate.move_to(RIGHT*4), run_time=4)
self.wait()
Describe the bug : the method of move_to can't move horizontally,Run the following code and you will find that the objects on the screen do not move completely horizontally, but are offset downwards. What is going on?