GlobalTransform
Methods
Methods GlobalTransform class biedt een alleen-lezen weergave van de wereldruimtetransformatie‑matrix van een node. Deze wordt berekend door de lokale transformaties van alle voorouder‑nodes samen te stellen, van de root tot aan de huidige node.
Toegang via node.GlobalTransform. De enige eigenschap is Matrix (type Matrix4), die de samengestelde wereldruimtetransformatie bevat.
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
| Name | Type | Access | Description |
|---|---|---|---|
Translation | Vector3 | Read | Gets the translation. |
Scale | Vector3 | Read | Gets the scale. |
EulerAngles | Vector3 | Read | Gets the euler angles. |
Rotation | Quaternion | Read | Gets the rotation. |
TransformMatrix | Matrix4 | Read | Gets the transform matrix. |
Name | string | Read/Write | Gets or sets the name. |
Properties | PropertyCollection | Read | Gets the properties. |
| Signature | Description |
|---|---|
GlobalTransform() | Creates a new instance representing a global transformation |
GlobalTransform(matrix: Matrix4) | The transform matrix |
A3DObject() | |
RemoveProperty(property: Property) | Removes a dynamic property. |
GetProperty(property: string) | Get the value of specified property |
SetProperty(property: string, value: object?) | Sets the value of specified property |
FindProperty(propertyName: string) | Finds the property. It can be a dynamic property (Created by CreateDynamicProperty/SetProperty) or native property(Identified by its name) |