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
MatrixMatrix4get합성된 월드‑스페이스 변환 행렬

참고

 한국어