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