Skip to content

Error in center of rotation for add_fixed_orientation_mobjects() #4644

@Aoyanco123

Description

@Aoyanco123

Error in center of rotation for add_fixed_orientation_mobjects()

The calculated center for fixed orientation mobjects is incorrect for text strings. Specifically, the text's center of rotation is placed on the left edge of the text, instead of the center given from .get_center().

Code:

from manim import *

class Start(ThreeDScene):
  
    def construct(self):

        self.add(ThreeDAxes())
        text = Tex("Some Long Text")
        self.add_fixed_orientation_mobjects(text)
        self.interactive_embed()

Images of Incorrect rotation:

Images Image Image Image

Additional comments

Ran using the OpenGL renderer on Mac

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions