RenderWare V2.1

Previous Page Index Next Page

RwClump *

RwGetClumpBBox(RwClump *clump, RwV3d *bll, RwV3d *fur);

Description

Retrieves the bounding box of the clump in world space coordinates.

Arguments

clump Pointer to the clump.

bll Pointer to the point that will receive the back, lower, left coordinates of the bounding box (in world space coordinates).

fur Pointer to the point that will receive the front, upper, right coordinates of the bounding box (in world space coordinates).

Return Value

The argument clump if successful, and NULL otherwise.

Comments

This function is closely related to RwGetClumpLocalBBox(). However, this function returns a bounding box which is in world coordinate space. The bounding box returned by this function is aligned with the X, Y and Z axes of world space.

Note that this function is not recursive; it returns the bounding box of the specified clump only and not its descendants.

See Also

RwGetClumpLocalBBox()

RwGetClumpViewportRect()