![]() |
Murl Engine Lua Addon API
Version 1.0 beta
|
The IResetTransform graph node interface.
Nodes implementing this interface can be used to reset the position and/or rotation component of the currently active combined transform on the transform stack. This can be useful if e.g. a camera is attached to a moving object, but should always look in a specific direction regardless of the object's actual orientation. In such a case, an IResetTransform node can be inserted below the object and above the camera, with calling SetAffectTranslationEnabled(false) to retain the object's position, and SetAffectRotationEnabled(true) to reset its rotation to the identity 3x3 matrix.
Note, that like all other transform nodes, the effect is limited to this node's children; all siblings of this node are not affected.
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()
Enable/disable resetting of the current world rotation.
Boolean SetAffectRotationEnabled(Boolean enabled)
enabled | If true, the rotation part of the current world transform is reset to the 3x3 identity matrix. |
Check if resetting of the current world rotation is enabled.
Boolean IsAffectRotationEnabled()
Enable/disable resetting of the current world translation.
Boolean SetAffectTranslationEnabled(Boolean enabled)
enabled | If true, the translation part of the current world transform is reset to the zero position vector. |
Check if resetting of the current world translation is enabled.
Boolean IsAffectTranslationEnabled()
Enable/disable resetting of the current depth order.
Boolean SetAffectDepthOrderEnabled(Boolean enabled)
enabled | If true, the depth order is reset to zero. |
Check if resetting of the current depth order is enabled.
Boolean IsAffectDepthOrderEnabled()