Node.GlobalTransform
Node.GlobalTransform property
Gets the global transform.
public GlobalTransform GlobalTransform { get; }
Property Value
The global transform.
Examples
The following code shows how to read node’s global transform
Scene scene = new Scene();
var boxNode = scene.RootNode.CreateChildNode(new Box());
//place the box at (10, 0, 0)
boxNode.Transform.Translation = new Vector3(10, 0, 0);
var global = boxNode.GlobalTransform;
Console.WriteLine($"The box's position in world coordinate is {global.Translation}");
See Also
- class GlobalTransform
- class Node
- namespace Aspose.ThreeD
- assembly Aspose.3D