boundingBox: Difference between revisions
| m (changed global to local variable to make clear the variable) |  (clarified coordinates) | ||
| Line 7: | Line 7: | ||
| ____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | Returns a bounding box of given object in model coordinate space. |= Description | | Returns a bounding box of given object in model coordinate space.  |= Description | ||
| ____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| Line 14: | Line 14: | ||
| |p1= model : [[Object]] |= Parameter 1 | |p1= model : [[Object]] |= Parameter 1 | ||
| | [[Array]] - An array with the extreme points of the model. Format:  | | [[Array]] - An array with the extreme points of the model. Format: [[minX, minY, minZ], [maxX, maxY, maxZ]] | ||
| [[Image:BoundingBox.jpg|200px]]  |= Return value | |||
| ____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| |x1= <code>_box <nowiki>=</nowiki> '''boundingBox''' _abrams</code> |= Example 1 | |x1= <code>_box <nowiki>=</nowiki> '''boundingBox''' _abrams</code>|= Example 1 | ||
| ____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
Revision as of 21:04, 14 September 2008
Description
- Description:
- Returns a bounding box of given object in model coordinate space.
- Groups:
- Uncategorised
Syntax
- Syntax:
- Array = boundingBox model
- Parameters:
- model : Object
- Return Value:
- Array - An array with the extreme points of the model. Format: [[minX, minY, minZ], [maxX, maxY, maxZ]]
 
Examples
- Example 1:
- _box = boundingBox _abrams
Additional Information
- See also:
- See also needed
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
