GlobalTransform
Methods
Methods GlobalTransform kelas menyediakan paparan baca-sahaja bagi matriks transformasi ruang-dunia sesuatu nod. Ia dikira dengan menggabungkan transformasi setempat semua nod nenek moyang dari akar hingga nod semasa.
Akses melalui node.GlobalTransform. Satu-satunya sifat ialah Matrix (jenis Matrix4), yang mengandungi transformasi ruang-dunia yang 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
| Name | Type | Access | Description |
|---|---|---|---|
Translation | Vector3 | Read | Gets the translation |
Scale | Vector3 | Read | Gets the scale |
EulerAngles | Vector3 | Read | Gets the rotation represented in Euler angles, measured in degree |
Rotation | Quaternion | Read | Gets the rotation represented in quaternion. |
TransformMatrix | Matrix4 | Read | Gets the transform matrix. |