Skip to main content

Class: XRBlocksInteractions

Defined in: xrblocks-interactions/src/host.ts:33

Constructors​

Constructor​

new XRBlocksInteractions(options: XRBlocksInteractionsOptions): XRBlocksInteractions;

Defined in: xrblocks-interactions/src/host.ts:39

Parameters​

ParameterType
optionsXRBlocksInteractionsOptions

Returns​

XRBlocksInteractions

Properties​

PropertyModifierTypeDefined in
hitTesterreadonlyThreeHitTesterxrblocks-interactions/src/host.ts:36
providerreadonlyXRBlocksInputProviderxrblocks-interactions/src/host.ts:35
runtimereadonlyInteractionRuntimexrblocks-interactions/src/host.ts:34

Methods​

dispose()​

dispose(): void;

Defined in: xrblocks-interactions/src/host.ts:71

Returns​

void


getPort()​

getPort(id: string): ThreeTransformPort | undefined;

Defined in: xrblocks-interactions/src/host.ts:63

Parameters​

ParameterType
idstring

Returns​

ThreeTransformPort | undefined


register()​

register(descriptor: InteractableDescriptor, object: Object3D): ThreeTransformPort;

Defined in: xrblocks-interactions/src/host.ts:49

Parameters​

ParameterType
descriptorInteractableDescriptor
objectObject3D

Returns​

ThreeTransformPort


unregister()​

unregister(id: string): void;

Defined in: xrblocks-interactions/src/host.ts:57

Parameters​

ParameterType
idstring

Returns​

void


update()​

update(dt: number): void;

Defined in: xrblocks-interactions/src/host.ts:67

Parameters​

ParameterType
dtnumber

Returns​

void