boundingBoxReal: Difference between revisions
Jump to navigation
Jump to search
m (Bot: Replacing category Scripting Commands Arma 3 with Arma 3: Scripting Commands) |
m (Bot: Reverted to revision 92483 by killzone_kid on 2015-10-17T16:09:25Z) |
||
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: | [[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]] | ||
[[Category:Arma 3: | |||
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]] | [[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]] |
Revision as of 18:05, 3 December 2018
Description
- Description:
- 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