Model:getAABB

Returns a bounding box that encloses the vertices of the Model.

minx, maxx, miny, maxy, minz, maxz = Model:getAABB()

Arguments

None

Returns

NameTypeDescription
minxnumberThe minimum x coordinate of the box.
maxxnumberThe maximum x coordinate of the box.
minynumberThe minimum y coordinate of the box.
maxynumberThe maximum y coordinate of the box.
minznumberThe minimum z coordinate of the box.
maxznumberThe maximum z coordinate of the box.

Notes

Note that currently this function returns the bounding box for the default animation pose, so it won't update based on the current Animator pose.

See also