Skip to main content

Class: Plane

Default/Physics/Classes/Plane.Plane

Constructors

constructor

new Plane(): Plane

Returns

Plane

Properties

dimensions

dimensions: Vector3

Defined in

divinevoxel/foundation/src/Default/Physics/Classes/Plane.ts:5


normal

normal: Vector3

Defined in

divinevoxel/foundation/src/Default/Physics/Classes/Plane.ts:6

Methods

lineToPlane

lineToPlane(line): number

Line To Plane

Parameters

NameType
lineLine

Returns

number

a value between 0 and 1.

1 meaning there was no collision and 0.5 meaning there was collision at the halfway mark of the bouding box.

Defined in

divinevoxel/foundation/src/Default/Physics/Classes/Plane.ts:20


update

update(dimensions, normal): Plane

Parameters

NameType
dimensionsVector3
normalVector3

Returns

Plane

Defined in

divinevoxel/foundation/src/Default/Physics/Classes/Plane.ts:8