GlobalTransform

GlobalTransform — Aspose.3D FOSS for .NET

Methods

Methods GlobalTransform kelas menyediakan tampilan read-only dari matriks transformasi world-space sebuah node. Matriks ini dihitung dengan menggabungkan transformasi lokal semua node nenek moyang dari root hingga node saat ini.

Akses melalui node.GlobalTransform. Satu-satunya properti adalah Matrix (tipe Matrix4), yang berisi transformasi world-space yang telah digabungkan.

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;

Methods

MethodsMethodsMethodsMethods
MatrixMatrix4dapatkanMatriks transformasi world-space yang telah digabungkan

Lihat Juga

 Bahasa Indonesia