@novorender/web_app / CollisionModule
Class: CollisionModule
Module for all collision calculations
Constructors
new CollisionModule()
new CollisionModule(worker, parent): CollisionModule
Parameters
Parameter | Type |
---|---|
worker | MeasureWorker |
parent | MeasureView |
Returns
Defined in
@novorender/measure/modules/collision/module.ts:10
Methods
collision()
collision(
a,
b,
setting?): Promise<undefined | CollisionValues>
Returns collision values between 2 entities currently only works for two cylinders
Parameters
Parameter | Type |
---|---|
a | ParametricEntity |
b | ParametricEntity |
setting ? | MeasureSettings |
Returns
Promise
<undefined
| CollisionValues
>
Defined in
@novorender/measure/modules/collision/module.ts:16
Properties
parent
readonly parent: MeasureView;
Defined in
@novorender/measure/modules/collision/module.ts:10
worker
readonly worker: MeasureWorker;