GlobalTransform — Aspose.3D FOSS for .NET
Methods
Methods GlobalTransform クラスはノードのワールド空間変換行列の読み取り専用ビューを提供します。これは、ルートから現在のノードまでのすべての祖先ノードのローカルトランスフォームを合成して計算されます。.
次の方法でアクセス: 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 | get | 合成されたワールド空間変換行列 |