from manim import *
class MoveCameraDemo(ThreeDScene):
    def construct(self):
        self.set_camera_orientation(phi=75 * DEGREES, theta=30 * DEGREES)
        title = Text("ThreeDScene：move_camera 调整视角", font="STLiti", font_size=28).to_edge(UP)
        self.add_fixed_in_frame_mobjects(title)
        sphere = Sphere(radius=1.6, fill_color=RED, fill_opacity=0.7)
        self.play(FadeIn(sphere), run_time=1.0)
        self.move_camera(phi=45 * DEGREES, theta=-45 * DEGREES, run_time=2.8)
        self.wait(2.0)
