GlobalTransform — Aspose.3D FOSS for .NET
Example
Example GlobalTransform trieda poskytuje len na čítanie pohľad na transformačnú maticu uzla vo svetovom priestore. Vypočíta sa zložením lokálnych transformácií všetkých predkových uzlov od koreňa po aktuálny uzol.
Prístup cez node.GlobalTransform. Jedinou vlastnosťou je Matrix (typ Matrix4), ktorá obsahuje zloženú transformáciu vo svetovom priestore.
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;Example
| Example | Example | Example | Example |
|---|---|---|---|
Matrix | Matrix4 | získať | Zložená transformačná matica vo svetovom priestore |