PcoWSkbVqDnWTu_dm2ix
The Developer Hub is now deprecated and information on this page may no longer be accurate. To see our new and improved documentation, please click here. You can read more about the future of documentation here.
Collapse Sidebar

GetExtentsSize

Returns the size of the smallest bounding box that contains all of the BaseParts in the Model. If Model/PrimaryPart exists then the bounding box will be aligned to that part. If a primary part has not been set then the function will chose a part in the model to align the bounding box to. As the the selection of this part is not deterministic it is recommended to set a Model/PrimaryPart to get consistent results with this function.

Note this function only returns the size of the smallest bounding box, and the developer must employ their own method to obtain the position of the bounding box.

Returns

Return Type Summary

The DataType/Vector3 extents size of the Model.


Code Samples


Model GetExtentsSize

The code sample below demonstrates how Model.GetExtentsSize can be used to get the size of the bounding box containing the parts.