boundingBoxReal: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(format)
m (Bot: Replacing category Scripting Commands Arma 3 with Arma 3: Scripting Commands)
Line 42: Line 42:


<h3 style='display:none'>Bottom Section</h3>
<h3 style='display:none'>Bottom Section</h3>
[[Category:Arma_3:_New_Scripting_Commands_List|{{uc:{{PAGENAME}}}}]]
 
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Arma 3: New Scripting Commands List|{{uc:{{PAGENAME}}}}]]
[[Category:Arma 3: Scripting Commands]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]

Revision as of 16:45, 3 December 2018

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.
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