ModelData:getCenter

Edit

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

x, y, z = ModelData: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