Skip to main content

Class: BoundingBox

Default/Physics/Classes/BoundingBox.BoundingBox

Constructors

constructor

new BoundingBox(width?, height?, depth?): BoundingBox

Parameters

NameTypeDefault value
widthnumber1
heightnumberwidth
depthnumberwidth

Returns

BoundingBox

Defined in

divinevoxel/foundation/src/Default/Physics/Classes/BoundingBox.ts:15

Properties

_full

_full: Object

Type declaration

NameType
dnumber
hnumber
wnumber

Defined in

divinevoxel/foundation/src/Default/Physics/Classes/BoundingBox.ts:12


_half

_half: Object

Type declaration

NameType
dnumber
hnumber
wnumber

Defined in

divinevoxel/foundation/src/Default/Physics/Classes/BoundingBox.ts:13


bounds

bounds: Object

Type declaration

NameType
maxXnumber
maxYnumber
maxZnumber
minXnumber
minYnumber
minZnumber

Defined in

divinevoxel/foundation/src/Default/Physics/Classes/BoundingBox.ts:4


position

position: Vector3

Defined in

divinevoxel/foundation/src/Default/Physics/Classes/BoundingBox.ts:14

Accessors

depth

get depth(): number

Returns

number

Defined in

divinevoxel/foundation/src/Default/Physics/Classes/BoundingBox.ts:48

set depth(depth): void

Parameters

NameType
depthnumber

Returns

void

Defined in

divinevoxel/foundation/src/Default/Physics/Classes/BoundingBox.ts:59


halfDepth

get halfDepth(): number

Returns

number

Defined in

divinevoxel/foundation/src/Default/Physics/Classes/BoundingBox.ts:69


halfHeight

get halfHeight(): number

Returns

number

Defined in

divinevoxel/foundation/src/Default/Physics/Classes/BoundingBox.ts:66


halfWidth

get halfWidth(): number

Returns

number

Defined in

divinevoxel/foundation/src/Default/Physics/Classes/BoundingBox.ts:63


height

get height(): number

Returns

number

Defined in

divinevoxel/foundation/src/Default/Physics/Classes/BoundingBox.ts:45

set height(height): void

Parameters

NameType
heightnumber

Returns

void

Defined in

divinevoxel/foundation/src/Default/Physics/Classes/BoundingBox.ts:55


width

get width(): number

Returns

number

Defined in

divinevoxel/foundation/src/Default/Physics/Classes/BoundingBox.ts:42

set width(width): void

Parameters

NameType
widthnumber

Returns

void

Defined in

divinevoxel/foundation/src/Default/Physics/Classes/BoundingBox.ts:51

Methods

doesIntersect

doesIntersect(boundingBox): boolean

Parameters

NameType
boundingBoxBoundingBox

Returns

boolean

Defined in

divinevoxel/foundation/src/Default/Physics/Classes/BoundingBox.ts:84


pointIsInside

pointIsInside(point): boolean

Parameters

NameType
pointPosition3Matrix

Returns

boolean

Defined in

divinevoxel/foundation/src/Default/Physics/Classes/BoundingBox.ts:73


query

query(): Generator<Vec3Array, any, unknown>

Returns

Generator<Vec3Array, any, unknown>

Defined in

divinevoxel/foundation/src/Default/Physics/Classes/BoundingBox.ts:95


setPosition

setPosition(position): void

Parameters

NameType
positionVector3

Returns

void

Defined in

divinevoxel/foundation/src/Default/Physics/Classes/BoundingBox.ts:32


update

update(width, height, depth): void

Parameters

NameType
widthnumber
heightnumber
depthnumber

Returns

void

Defined in

divinevoxel/foundation/src/Default/Physics/Classes/BoundingBox.ts:27