GlobalTransform — Aspose.3D FOSS for .NET
Methods
Methods GlobalTransform klase nodrošina tikai lasāmu skatu uz mezgla pasaules telpas transformācijas matricu. Tā tiek aprēķināta, apvienojot visu priekšgājēju mezglu lokālās transformācijas no saknes līdz pašreizējam mezglam.
Piekļuve caur node.GlobalTransform. Vienīgā īpašība ir Matrix (tips Matrix4), kas satur apvienoto pasaules telpas transformāciju.
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 | iegūt | Apvienotā pasaules telpas transformācijas matrica |