Node::CalculateBoundingBox
Defined in:
Calculates the bounding box for a node.
C4Node.hPrototype
virtual bool CalculateBoundingBox(Box3D *box) const;
Parameters
box |
A pointer to the location where the bounding box is stored. |
Description
The CalculateBoundingBox function should be overridden by any node type that needs to calculate its bounding box in some special way. The extents of the axis-aligned bounding box in the local coordinate system of the node should be stored in the Box3D object specified by the box parameter. The CalculateBoundingBox function should return true if a bounding box could be calculated, and it should return false if the node does not have a bounding box (in which case the data stored in the box parameter is ignored).
See Also
