C4 Engine Terathon Software C4 Engine API Documentation

• World Manager

API Links
Developer Links

Node::Occluded

Defined in:  C4Node.h
Determines whether a node is occluded by any occlusion region.
Prototype

bool Occluded(const Region *region) const;

Parameters
region The first region in a list of occlusion regions for which the node should be tested for occlusion. This cannot be nullptr.
Description
The Occluded function calls a node's currently installed occlusion procedure to determine whether the node is occluded within any of the regions in the list whose first member is specified by the region parameter. This function is normally only called from within the World Manager. The return value is true if the node is occluded, and false otherwise.

By default, a node's occlusion procedure tests the node's bounding sphere against the planes of each region in the list. A different occlusion procedure can be installed by calling the Node::SetOcclusionProc function.
See Also

Node::SetOcclusionProc

Node::Visible

Region