Mesh:setBoundingBox

Edit

Sets or removes the axis-aligned bounding box of the Mesh.

Meshes with the cpu storage mode can compute their bounding box automatically using Mesh:computeBoundingBox.

Passes will use the bounding box of a Mesh to cull it against the cameras when Pass:setViewCull is enabled, which avoids rendering it when it's out of view.



Arguments

NameTypeDescription
minxnumber The minimum x coordinate of the bounding box.
maxxnumber The maximum x coordinate of the bounding box.
minynumber The minimum y coordinate of the bounding box.
maxynumber The maximum y coordinate of the bounding box.
minznumber The minimum z coordinate of the bounding box.
maxznumber The maximum z coordinate of the bounding box.

Returns

Nothing

Remove the bounding box.

Arguments

None

Returns

Nothing

See also