GlobalTransform — Aspose.3D FOSS for Java

Overview

GlobalTransform represents the read-only world-space transformation of a scene node. It is obtained by calling node.getGlobalTransform() and reflects the cumulative effect of all ancestor transforms from the scene root down to the node.

Package: com.aspose.threed

All properties are read-only. To change a node’s position or orientation, modify the node’s writable Transform instead.


Class Reference

ClassDescription
GlobalTransformRead-only world-space transform snapshot. Properties: getTranslation(), getScale(), getRotation(), getEulerAngles(), getTransformMatrix().

Quick Example

import com.aspose.threed.Node;
import com.aspose.threed.GlobalTransform;

Node child = scene.getRootNode().createChildNode("child");
GlobalTransform gt = child.getGlobalTransform();
System.out.println(gt.getTranslation());       // world-space position
System.out.println(gt.getMatrix());   // full 4x4 matrix

See Also