boundingBoxReal objectName

Operand types

objectName: Object

Type of returned value

Description

Returns a bounding box of given object in model coordinates space. This command is similar to boundingBox but gives more precise measurements.

Return value is an array with the extreme points of the model. Format [[x1,y1,z1],[x2,y2,z2]].

(image from BIS wiki)

Used In

Arma3

Example

_bbr = boundingBoxReal vehicle player;
_p1 = _bbr select 0;
_p2 = _bbr select 1;
_maxWidth = abs ((_p2 select 0) - (_p1 select 0));
_maxLength = abs ((_p2 select 1) - (_p1 select 1));
_maxHeight = abs ((_p2 select 2) - (_p1 select 2));
Search OFPEC COMREF