Пример #1
0
    def test_camera_move_with_up(self):
        camera = self.engine.current_scene.scene.camera

        with check_attrs_change(self, camera,
                                ("focal_point", "position", "clipping_range")):
            camera_tools.move(up=20.)
Пример #2
0
    def test_camera_move_with_up(self):
        camera = self.engine.current_scene.scene.camera

        with check_attrs_change(self, camera,
                                ("focal_point", "position", "clipping_range")):
            camera_tools.move(up=20.)
Пример #3
0
    def test_camera_move_with_right(self):
        camera = self.engine.current_scene.scene.camera

        with check_attrs_change(self, camera, ("focal_point", "position")), \
                check_attrs_do_not_change(self, camera, ("clipping_range",)):
            camera_tools.move(right=20.)
Пример #4
0
    def test_camera_move_with_right(self):
        camera = self.engine.current_scene.scene.camera

        with check_attrs_change(self, camera, ("focal_point", "position")), \
                check_attrs_do_not_change(self, camera, ("clipping_range",)):
            camera_tools.move(right=20.)