boundingBoxReal: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Bot: Reverted to revision 92483 by killzone_kid on 2015-10-17T16:09:25Z)
(difference)
Line 7: Line 7:
____________________________________________________________________________________________
____________________________________________________________________________________________


| [[Image:Boundingbox.jpg|right|200px]] Returns a bounding box of given object in model coordinates space. This command is similar to [[boundingBox]] but gives more precise measurements. |= Description
| [[Image:Boundingbox.jpg|right|200px]] Returns a bounding box of given object in model coordinates space. This command is similar to [[boundingBox]] but gives more precise measurements, as the size of this bounding box is adjusted according to destruction/animation of an object.|= Description
 
____________________________________________________________________________________________
____________________________________________________________________________________________



Revision as of 12:00, 11 February 2019

Hover & click on the images for description

Description

Description:
Boundingbox.jpg
Returns a bounding box of given object in model coordinates space. This command is similar to boundingBox but gives more precise measurements, as the size of this bounding box is adjusted according to destruction/animation of an object.
Groups:
Uncategorised

Syntax

Syntax:
boundingBoxReal obj
Parameters:
obj: Object
Return Value:
Array - An array with the extreme points of the model. Format [[x1,y1,z1],[x2,y2,z2]].

Examples

Example 1:
_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));

Additional Information

See also:
boundingBoxsizeOfboundingCenter

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note

Notes

Bottom Section