GlobalTransform

GlobalTransform — Aspose.3D FOSS for .NET

Overview

The GlobalTransform class provides a read-only view of a node’s world-space transformation matrix. It is computed by composing the local transforms of all ancestor nodes from the root down to the current node.

Access via node.GlobalTransform. The only property is Matrix (type Matrix4), which contains the composed world-space transformation.

using Aspose.ThreeD;

var scene = new Scene();
var parent = scene.RootNode.CreateChildNode("Parent");
parent.Transform.Translation = new FVector3(10, 0, 0);

var child = parent.CreateChildNode("Child");
child.Transform.Translation = new FVector3(5, 0, 0);

// Access the composed world-space matrix
Matrix4 worldMatrix = child.GlobalTransform.Matrix;

Properties

NameTypeAccessDescription
MatrixMatrix4getComposed world-space transformation matrix

See Also