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.trs.Object3D class

Three-dimensional object with TRS-based transformation implementation

## Methods

self, /) -> Matrix4
Transformation relative to the root object
self, /) -> Matrix4
Transformation matrix relative to the root object
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
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
rotation: Quaternion get set
Object rotation
scaling: Vector3 get set
Object scaling
scene: Scene3D get
Scene or None if the object is not a part of any scene
transformation: Matrix4 get set
Object transformation
translation: Vector3 get set
Object translation