Box

constructor()

Create a box with a center of (0,0,0) and a size of (1,1,1).


constructor(size: Vector3)

Create a box with a center of (0,0,0) and a specified size.

Parameters

size

the size of the box.


constructor(size: Vector3, center: Vector3)

Create a box with a specified center and size.

Parameters

size

the size of the box

center

the center of the box