GlobalTransform — Aspose.3D FOSS for .NET
Enumerations
Enumerations GlobalTransform klasa zapewnia widok tylko do odczytu macierzy transformacji w przestrzeni świata węzła. Jest ona obliczana przez składanie lokalnych transformacji wszystkich węzłów-rodziców od korzenia aż do bieżącego węzła.
Dostęp przez node.GlobalTransform. Jedyną właściwością jest Matrix (typ Matrix4), która zawiera złożoną transformację w przestrzeni świata.
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 | get | Złożona macierz transformacji w przestrzeni świata |