GlobalTransform — Aspose.3D FOSS for .NET
Methods
Methods GlobalTransform class 提供对节点的世界空间变换矩阵的只读视图。它通过将从根节点到当前节点的所有祖先节点的局部变换组合起来计算得到。.
通过以下方式访问 node.GlobalTransform. 唯一的属性是 Matrix (type 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 | 获取 | 组合的世界空间变换矩阵 |