Mesh:setBoundingBox
EditSets 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
| Name | Type | Description |
| minx | number | The minimum x coordinate of the bounding box. |
| maxx | number | The maximum x coordinate of the bounding box. |
| miny | number | The minimum y coordinate of the bounding box. |
| maxy | number | The maximum y coordinate of the bounding box. |
| minz | number | The minimum z coordinate of the bounding box. |
| maxz | number | The maximum z coordinate of the bounding box. |
Returns
Nothing
Remove the bounding box.
Arguments
None
Returns
Nothing