boundingBox: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (see also)
(format, moving nice old, but misleading picture to talk for historic keeping)
Line 7: Line 7:
____________________________________________________________________________________________
____________________________________________________________________________________________


| Returns a bounding box of given object in model coordinate space.  |= Description
|[[Image:Boundingbox.jpg|right|200px]] Returns a bounding box of given object in model coordinate space.  |= Description
____________________________________________________________________________________________
____________________________________________________________________________________________


| [[Array]] <nowiki>=</nowiki> '''boundingBox''' model |= Syntax
| '''boundingBox''' model |= Syntax


|p1= model : [[Object]] |= Parameter 1
|p1= model : [[Object]] |= Parameter 1


| [[Array]] - An array with the extreme points of the model. Format: [[minX, minY, minZ], [maxX, maxY, maxZ]]
| [[Array]] - An array with the extreme points of the model. Format [[x1,y1,z1],[x2,y2,z2]]|= Return value
 
[[Image:BoundingBox.jpg|200px]] |= Return value
____________________________________________________________________________________________
____________________________________________________________________________________________


|x1= <code>_box <nowiki>=</nowiki> '''boundingBox''' _abrams</code>|= Example 1
|x1= <code>_box = '''boundingBox''' _abrams</code>|= Example 1
____________________________________________________________________________________________
____________________________________________________________________________________________



Revision as of 17:11, 17 October 2015

-wrong parameter ("Arma") defined!-1.00
Hover & click on the images for description

Description

Description:
Boundingbox.jpg
Returns a bounding box of given object in model coordinate space.
Groups:
Uncategorised

Syntax

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

Examples

Example 1:
_box = boundingBox _abrams

Additional Information

See also:
sizeOfboundingBoxRealboundingCenter

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