ModelData:getBoundingSphere

Edit

Returns a sphere approximately enclosing the vertices in the model.

x, y, z, radius = ModelData:getBoundingSphere()

Arguments

None

Returns

NameTypeDescription
xnumber The x coordinate of the position of the sphere.
ynumber The y coordinate of the position of the sphere.
znumber The z coordinate of the position of the sphere.
radiusnumber The radius of the bounding sphere.

See also