GlobalTransform

GlobalTransform — Aspose.3D FOSS for .NET

Example

Example GlobalTransform کلاس نمایی فقط‑خواندنی از ماتریس تبدیل فضای جهانی یک گره فراهم می‌کند. این ماتریس با ترکیب تبدیل‌های محلی تمام گره‌های پیشین از ریشه تا گرهٔ فعلی محاسبه می‌شود.

دسترسی از طریق node.GlobalTransform. تنها ویژگی این است Matrix (نوع 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دریافتماتریس تبدیل ترکیبی فضای جهانی

موارد مرتبط

 فارسی