ModelData:getDimensions

Edit

Returns the width, height, and depth of the model, computed from its axis-aligned bounding box.




Get the dimensions of the whole model.

Arguments

None

Returns

NameTypeDescription
widthnumber The width.
heightnumber The height.
depthnumber The depth.

Get the dimensions of a single mesh in the model.

Arguments

NameTypeDescription
meshnumber The mesh to get the dimensions of.

Returns

NameTypeDescription
widthnumber The width.
heightnumber The height.
depthnumber The depth.

Get the dimensions of a single part of a mesh in the model.

Arguments

NameTypeDescription
meshnumber The mesh to get the dimensions of.
partnumber The part to get the dimensions of.

Returns

NameTypeDescription
widthnumber The width.
heightnumber The height.
depthnumber The depth.

See also