Model:getCenter
EditReturns the center of the Model's axis-aligned bounding box, relative to the Model's origin.
Get the center of the whole Model.
Arguments
None
Returns
| Name | Type | Description |
| x | number | The x coordinate of the center of the bounding box. |
| y | number | The y coordinate of the center of the bounding box. |
| z | number | The z coordinate of the center of the bounding box. |
Get the center of a single mesh in the Model.
Arguments
| Name | Type | Description |
| mesh | number | The mesh to get the dimensions of. |
Returns
| Name | Type | Description |
| x | number | The x coordinate of the center of the bounding box. |
| y | number | The y coordinate of the center of the bounding box. |
| z | number | The z coordinate of the center of the bounding box. |
Get the center of a single part of a mesh in the Model.
Arguments
| Name | Type | Description |
| mesh | number | The mesh to get the dimensions of. |
| part | number | The part to get the dimensions of. |
Returns
| Name | Type | Description |
| x | number | The x coordinate of the center of the bounding box. |
| y | number | The y coordinate of the center of the bounding box. |
| z | number | The z coordinate of the center of the bounding box. |