pXent_getbounds ( entity, var ShapeNum, vecOut );

Retrieves the bounding box as a Dimension vector of a single shape. An Actor can consist of more than one shape. Please note that this bounding box doesn't rotate along with the object.

Parameters:

entity registered Entity pointer (Actor)
ShapeNum Number of shape. (Range [0, inf )
vecOut Get the Bounding Box Dimensions


Returns:

1 if successful, 0 otherwise.

Speed:

Fast

Example:

pXent_getbounds(my, 1, vecBBox);

See also:

pXent_AddShapeToActor