GlobalTransform — Aspose.3D FOSS for .NET
Enumerations
Enumerations GlobalTransform توفر الفئة عرضًا للقراءة فقط لمصفوفة التحويل في الفضاء العالمي للعقدة. يتم حسابها عن طريق تجميع التحويلات المحلية لجميع العقد الأصلية من الجذر حتى العقدة الحالية.
الوصول عبر node.GlobalTransform. الخاصية الوحيدة هي Matrix (النوع Matrix4)، التي تحتوي على التحويل المركب في الفضاء العالمي.
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;Enumerations
| Enumerations | Enumerations | Enumerations | Enumerations |
|---|---|---|---|
Matrix | Matrix4 | احصل على | مصفوفة التحويل المركبة في الفضاء العالمي |