Skip to main content

@novorender/web_app / CollisionModule

Class: CollisionModule

Module for all collision calculations

Constructors

new CollisionModule()

new CollisionModule(worker, parent): CollisionModule

Parameters

ParameterType
workerMeasureWorker
parentMeasureView

Returns

CollisionModule

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

ParameterType
aParametricEntity
bParametricEntity
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;

Defined in

@novorender/measure/modules/collision/module.ts:10