GlobalTransform

GlobalTransform

Methods

Methods GlobalTransform La clase proporciona una vista de solo lectura de la matriz de transformación en espacio mundial de un nodo. Se calcula componiendo las transformaciones locales de todos los nodos ancestros desde la raíz hasta el nodo actual.

Acceso a través de node.GlobalTransform. La única propiedad es Matrix (tipo Matrix4), que contiene la transformación compuesta en espacio mundial.

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

NameTypeAccessDescription
TranslationVector3ReadGets the translation.
ScaleVector3ReadGets the scale.
EulerAnglesVector3ReadGets the euler angles.
RotationQuaternionReadGets the rotation.
TransformMatrixMatrix4ReadGets the transform matrix.
NamestringRead/WriteGets or sets the name.
PropertiesPropertyCollectionReadGets the properties.
SignatureDescription
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)

Ver también

 Español