Welcome to Python-flavored Magnum! Please note that, while already being rather stable, this functionality is still considered experimental and some APIs might get changed without preserving full backwards compatibility.

magnum.scenegraph.matrix.Object3D class

Three-dimensional object with matrix-based transformation implementation

Methods

def absolute_transformation(self, /) -> Matrix4
Transformation relative to the root object
def absolute_transformation_matrix(self, /) -> Matrix4
Transformation matrix relative to the root object
def reflect(self, arg0: Vector3, /) -> None
Reflect the object
def reflect_local(self, arg0: Vector3, /) -> None
Reflect the object as a local transformation
def reset_transformation(self, /) -> None
Reset the transformation
def rotate(self, angle: Rad, normalized_axis: Vector3) -> None
Rotate the object as a local transformation
def rotate_local(self, angle: Rad, normalized_axis: Vector3) -> None
Rotate the object as a local transformation
def rotate_x(self, arg0: Rad, /) -> None
Rotate the object around X axis
def rotate_x_local(self, arg0: Rad, /) -> None
Rotate the object around X axis as a local transformation
def rotate_y(self, arg0: Rad, /) -> None
Rotate the object around Y axis
def rotate_y_local(self, arg0: Rad, /) -> None
Rotate the object around Y axis as a local transformation
def rotate_z(self, arg0: Rad, /) -> None
Rotate the object around Z axis
def rotate_z_local(self, arg0: Rad, /) -> None
Rotate the object around Z axis as a local transformation
def scale(self, arg0: Vector3, /) -> None
Scale the object
def scale_local(self, arg0: Vector3, /) -> None
Scale the object as a local transformation
def transform(self, arg0: Matrix4, /) -> None
Transform the object
def transform_local(self, arg0: Matrix4, /) -> None
Transform the object as a local transformation
def transformation_matrix(self, /) -> Matrix4
Transformation matrix
def translate(self, arg0: Vector3, /) -> None
Translate the object
def translate_local(self, arg0: Vector3, /) -> None
Translate the object as a local transformation

Special methods

def __init__(self, parent: Object3D = None) -> None
Constructor
def __init__(self, parent: Scene3D = None) -> None
Constructor

Properties

parent: Object3D get set
Parent object or None if this is the root object
scene: Scene3D get
Scene or None if the object is not a part of any scene
transformation: Matrix4 get set
Object transformation