Model:getBoundingSphere

Returns a sphere approximately enclosing the vertices in the Model.

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