Model: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