ModelData:getWidth

Edit

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




Get the width of the whole model.

Arguments

None

Returns

NameTypeDescription
widthnumber The width.

Get the width of a single mesh in the model.

Arguments

NameTypeDescription
meshnumber The mesh to get the width of.

Returns

NameTypeDescription
widthnumber The width.

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

Arguments

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

Returns

NameTypeDescription
widthnumber The width.

See also