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
| Parameter | Type |
|---|---|
options | XRBlocksInteractionsOptions |
Returns
XRBlocksInteractions
Properties
| Property | Modifier | Type | Defined in |
|---|---|---|---|
hitTester | readonly | ThreeHitTester | xrblocks-interactions/src/host.ts:36 |
provider | readonly | XRBlocksInputProvider | xrblocks-interactions/src/host.ts:35 |
runtime | readonly | InteractionRuntime | xrblocks-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
| Parameter | Type |
|---|---|
id | string |
Returns
ThreeTransformPort | undefined
register()
register(descriptor: InteractableDescriptor, object: Object3D): ThreeTransformPort;
Defined in: xrblocks-interactions/src/host.ts:49
Parameters
| Parameter | Type |
|---|---|
descriptor | InteractableDescriptor |
object | Object3D |
Returns
unregister()
unregister(id: string): void;
Defined in: xrblocks-interactions/src/host.ts:57
Parameters
| Parameter | Type |
|---|---|
id | string |
Returns
void
update()
update(dt: number): void;
Defined in: xrblocks-interactions/src/host.ts:67
Parameters
| Parameter | Type |
|---|---|
dt | number |
Returns
void