GlobalTransform

GlobalTransform

Methods

Methods GlobalTransform sınıf, bir düğümün dünya uzayı dönüşüm matrisine yalnızca okunabilir bir görünüm sağlar. Bu matris, kökten mevcut düğüme kadar tüm ata düğümlerin yerel dönüşümlerinin birleştirilmesiyle hesaplanır.

Erişim: node.GlobalTransform. Tek özellik şudur Matrix (tip Matrix4), ki birleştirilmiş dünya uzayı dönüşümünü içerir.

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

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.

Ayrıca Bakınız

 Türkçe