boundingCenter: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Arma[ _]2(\|.*)]]" to "{{GameCategory|arma2|Scripting Commands}}") |
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
||
Line 1: | Line 1: | ||
{{Command|Comments= | {{Command|Comments= | ||
| arma2 |Game name= | | arma2 |Game name= | ||
Line 7: | Line 6: | ||
|gr1= Object Manipulation |GROUP1= | |gr1= Object Manipulation |GROUP1= | ||
| Returns the position of original (loaded) center of object in model coordinates. |DESCRIPTION= | | Returns the position of original (loaded) center of object in model coordinates. |DESCRIPTION= | ||
| '''boundingCenter''' object |SYNTAX= | | '''boundingCenter''' object |SYNTAX= | ||
Line 25: | Line 22: | ||
|x1= <code>_center <nowiki>=</nowiki> '''boundingCenter''' TruckOne</code>|EXAMPLE1= | |x1= <code>_center <nowiki>=</nowiki> '''boundingCenter''' TruckOne</code>|EXAMPLE1= | ||
| [[boundingBox]], [[sizeOf]], [[boundingBoxReal]] |SEEALSO= | | [[boundingBox]], [[sizeOf]], [[boundingBoxReal]] |SEEALSO= | ||
| |MPBEHAVIOUR= | | |MPBEHAVIOUR= | ||
}} | }} | ||
Revision as of 00:32, 17 January 2021
Description
- Description:
- Returns the position of original (loaded) center of object in model coordinates.
- Groups:
- Object Manipulation
Syntax
- Syntax:
- boundingCenter object
- Parameters:
- object: Object
- Return Value:
- Array - PositionRelative
Examples
- Example 1:
_center = boundingCenter TruckOne
Additional Information
- See also:
- boundingBoxsizeOfboundingBoxReal
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