Murl Engine Lua Addon API  Version 1.0 beta
Murl.Graph.IAnchor

The IAnchor graph node interface.

Anchor nodes may be used to temporarily "store" the current world transform and depth order during logic traversal, to be later retrieved by e.g. a node that implements the Graph::ICloneTransform interface.

See Graph::ICloneTransform for accessing the anchor's transform.


Table members

Methods


GetNodeInterface()

Get the constant Graph::INode interface. This method returns a constant pointer to the node's Graph::INode interface, to be able to query common node properties such as active state, visibility or ID.

Murl.Graph.INode GetNodeInterface()

Returns
Murl.Graph.INode The constant Graph::INode interface, or null if not available

GetWorldTransform()

Get the world transform stored during logic traversal. This returns a constant reference to the world transform calculated and stored during the most recent logic traversal. The returned transform is only valid until the next logic tick.

Murl.Math.Matrix GetWorldTransform()

Returns
Murl.Math.Matrix The most recent world transform.

GetWorldPosition()

Get the world position stored during logic traversal. This returns a constant reference to the world positon calculated and stored during the most recent logic traversal. The returned position is only valid until the next logic tick.

Murl.Math.Vector GetWorldPosition()

Returns
Murl.Math.Vector The most recent world position.

GetWorldDepthOrder()

Get the world depth order stored during logic traversal. This returns the absolute depth order calculated and stored during the most recent logic traversal. The returned value is only valid until the next logic tick.

Integer GetWorldDepthOrder()

Returns
Integer The most recent absolute depth order.