GlobalTransform

GlobalTransform — Aspose.3D FOSS for .NET

Example

Example 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;

Example

ExampleExampleExampleExample
MatrixMatrix4取得合成されたワールド空間変換行列

参照

 日本語