@relu-interactives/spatial-ecs
@relu-interactives/spatial-ecs / components / XRInteractorOptions
Type Alias: XRInteractorOptions ​
ts
type XRInteractorOptions = {
interactorType?: XrInteractorType;
handPreset?: XrHandPreset;
handColor?: string;
handOpacity?: number;
handEmissiveIntensity?: number;
rayVisibility?: XrRayVisibility;
rayColor?: string;
rayThickness?: number;
};Defined in: components/XRInteractor.ts:41
Optional initializer for XRInteractorComponent.
Properties ​
| Property | Type | Description | Defined in |
|---|---|---|---|
interactorType? | XrInteractorType | What to render at the hands. | components/XRInteractor.ts:43 |
handPreset? | XrHandPreset | Look for tracked-hand meshes. | components/XRInteractor.ts:45 |
handColor? | string | Tint applied by the preset (and by custom). | components/XRInteractor.ts:47 |
handOpacity? | number | 0-1; ghost leans on this. | components/XRInteractor.ts:49 |
handEmissiveIntensity? | number | Emissive strength, used by neon. | components/XRInteractor.ts:51 |
rayVisibility? | XrRayVisibility | When the pointer ray is drawn. | components/XRInteractor.ts:54 |
rayColor? | string | Pointer ray colour. | components/XRInteractor.ts:56 |
rayThickness? | number | Pointer ray thickness (diameter), metres. | components/XRInteractor.ts:58 |

