Description
Returns a bounding box of given object in model coordinate space, adjusted according to destruction/animation of an object. This command is rather generous on the size estimation, for more precise coordinates use boundingBoxReal.
Note
In Arma 3 v1.92 The output of both syntaxes got extended to include bounding sphere diameter. See also sizeOf.
Syntax
Syntax 1
boundingBox object
Parameters:
object: Object
Returns: PositionRelative - an array with the extreme points of the model, as well as bounding box sphere diameter. Format [[xmin, ymin, zmin], [xmax, ymax, zmax], boundingSphereDiameter].
Syntax 2
since arma3 1.92
clippingType boundingBox object
Parameters:
clippingType: Number - clipping type could be:- 0 - ClipVisual (could significantly reduce the size of bounding boxes on buildings)
- 1 - ClipShadow
- 2 - ClipGeometry
- 3 - ClipGeneral (Default, the same type that is used in main syntax)
object: Object
Returns: PositionRelative - an array with the extreme points of the model bounding box, as well as bounding box sphere diameter. Format [[xmin, ymin, zmin], [xmax, ymax, zmax], boundingSphereDiameter].
Examples
Example 1
private _box = boundingBox _abrams;
Example 2
hint str (0 boundingBox cursorObject);
See also
sizeOf · boundingBoxReal · boundingCenter · BIS_fnc_boundingBoxDimensions