ModelData:getBoundingBox

Returns the 6 values of the model's axis-aligned bounding box.

minx, maxx, miny, maxy, minz, maxz = ModelData:getBoundingBox()

Arguments

None

Returns

NameTypeDescription
minxnumber The minimum x coordinate of the vertices in the model.
maxxnumber The maximum x coordinate of the vertices in the model.
minynumber The minimum y coordinate of the vertices in the model.
maxynumber The maximum y coordinate of the vertices in the model.
minznumber The minimum z coordinate of the vertices in the model.
maxznumber The maximum z coordinate of the vertices in the model.

See also