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קבלמטריצת ההמרה המורכבת במרחב העולם

ראה גם

 עברית