Model:getCenter

Edit

Returns the center of the Model's axis-aligned bounding box, relative to the Model's origin.

x, y, z = Model:getCenter()

Arguments

None

Returns

NameTypeDescription
xnumber The x offset of the center of the bounding box.
ynumber The y offset of the center of the bounding box.
znumber The z offset of the center of the bounding box.

See also