Class: ThreeInteractions
Defined in: threejs-interactions/src/host.ts:27
Constructors
Constructor
new ThreeInteractions(options: ThreeInteractionsOptions): ThreeInteractions;
Defined in: threejs-interactions/src/host.ts:33
Parameters
| Parameter | Type |
|---|---|
options | ThreeInteractionsOptions |
Returns
ThreeInteractions
Properties
| Property | Modifier | Type | Defined in |
|---|---|---|---|
hitTester | readonly | ThreeHitTester | threejs-interactions/src/host.ts:30 |
provider | readonly | WebXRInputProvider | threejs-interactions/src/host.ts:29 |
runtime | readonly | InteractionRuntime | threejs-interactions/src/host.ts:28 |
Methods
dispose()
dispose(): void;
Defined in: threejs-interactions/src/host.ts:66
Returns
void
getPort()
getPort(id: string): ThreeTransformPort | undefined;
Defined in: threejs-interactions/src/host.ts:58
Parameters
| Parameter | Type |
|---|---|
id | string |
Returns
ThreeTransformPort | undefined
register()
register(descriptor: InteractableDescriptor, object: Object3D): ThreeTransformPort;
Defined in: threejs-interactions/src/host.ts:44
Register an interactable with its scene object.
Parameters
| Parameter | Type |
|---|---|
descriptor | InteractableDescriptor |
object | Object3D |
Returns
unregister()
unregister(id: string): void;
Defined in: threejs-interactions/src/host.ts:52
Parameters
| Parameter | Type |
|---|---|
id | string |
Returns
void
update()
update(dt: number): void;
Defined in: threejs-interactions/src/host.ts:62
Parameters
| Parameter | Type |
|---|---|
dt | number |
Returns
void