![]() |
Murl Engine Lua Addon API
Version 1.0 beta
|
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.
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()
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()
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()
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()
Get the world scale factor stored during logic traversal. This returns a constant reference to the world scale factor calculated and stored during the most recent logic traversal. The returned scale factor is only valid until the next logic tick.
Murl.Math.Vector GetWorldScaleFactor()