Transform — Aspose.3D FOSS for .NET

Overview

The Transform class defines the local transformation of a Node in the scene graph. It stores translation, rotation (as a Quaternion), and scale as separate properties. The composed transform matrix is used internally to compute the node’s world-space position via GlobalTransform.

using Aspose.ThreeD;

var scene = new Scene();
var node = scene.RootNode.CreateChildNode("Moved");

node.Transform.Translation = new FVector3(5, 0, 0);
node.Transform.Scale = new FVector3(2, 2, 2);

Properties

NameTypeAccessDescription
TranslationFVector3get/setLocal position offset
RotationQuaternionget/setLocal rotation as a unit quaternion
ScaleFVector3get/setLocal scale factor
MatrixMatrix4get/setComposed local transformation matrix

See Also