Node::InvalidateNode
Defined in:
Invalidates the world transform and dependent information.
C4Node.h
Prototype
void InvalidateNode(void);
Description
The InvalidateNode
function should be called whenever a node's local transform is altered through the Node::SetNodeTransform
function or one of the associated functions that alters only part of the local transform. When a node is invalidated, it is queued to be updated the next time the World Manager processes the scene before rendering. When a node is updated, its world transform is recalculated, and if needed, its world-space bounding box and world-space bounding sphere are recalculated.Invalidating a node causes its entire subtree to be invalidated, so it is not necessary to call the
InvalidateNode
function for each node in the subtree if many transforms are changed. Calling the InvalidateNode
function for the highest node in a hierarchy is sufficient.
See Also