format
typescript
Bounds.minclass: Bounds
description
The minimum value of the bounding box (equal to the center of the bounding box minus the extent of the bounding box).
This method is used to get the position of the bounding box in order to fit game objects or elements in the scene.
parameter
| param_name | type | description |
|---|
reture
| type | description |
|---|---|
Vector3 | The minimum value of the bounding box. |
code example
typescript
let bounds = new Bounds(new Vector3(1, 1, 1), new Vector3(1, 1, 1));
let min = bounds.min;//Get min
bounds.min = new Vector3(2, 2, 2);//Set min