Class: Plane
Default/Physics/Classes/Plane.Plane
Constructors
constructor
• new Plane(): Plane
Returns
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
| Name | Type |
|---|---|
line | Line |
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
| Name | Type |
|---|---|
dimensions | Vector3 |
normal | Vector3 |
Returns
Defined in
divinevoxel/foundation/src/Default/Physics/Classes/Plane.ts:8