ModelData:getCenter
EditReturns the center of the model's axis-aligned bounding box, relative to the model's origin.
x, y, z = ModelData:getCenter()
Arguments
None
Returns
Name | Type | Description |
x | number | The x offset of the center of the bounding box. |
y | number | The y offset of the center of the bounding box. |
z | number | The z offset of the center of the bounding box. |