GlobalTransform

GlobalTransform

Metode

Methods GlobalTransform clasa oferă o vizualizare numai în citire a matricei de transformare în spațiul mondial a unui nod. Aceasta este calculată prin compunerea transformărilor locale ale tuturor nodurilor strămoșe, de la rădăcină până la nodul curent.

Acces prin node.GlobalTransform. Singura proprietate este Matrix (tipul Matrix4), care conține transformarea compusă în spațiul mondial.

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;

Metode

NameTypeAccessDescription
TranslationVector3ReadGets the translation
ScaleVector3ReadGets the scale
EulerAnglesVector3ReadGets the rotation represented in Euler angles, measured in degree
RotationQuaternionReadGets the rotation represented in quaternion.
TransformMatrixMatrix4ReadGets the transform matrix.

Vezi și:

 Română