Arma 3 Scripting

boundingBox

  • Arma 3 v0.50
  • First in Armed Assault v1.00

Command · Markdown · JSON · original wiki page

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:

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:

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