Skip to content

@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 ​

PropertyTypeDescriptionDefined in
interactorType?XrInteractorTypeWhat to render at the hands.components/XRInteractor.ts:43
handPreset?XrHandPresetLook for tracked-hand meshes.components/XRInteractor.ts:45
handColor?stringTint applied by the preset (and by custom).components/XRInteractor.ts:47
handOpacity?number0-1; ghost leans on this.components/XRInteractor.ts:49
handEmissiveIntensity?numberEmissive strength, used by neon.components/XRInteractor.ts:51
rayVisibility?XrRayVisibilityWhen the pointer ray is drawn.components/XRInteractor.ts:54
rayColor?stringPointer ray colour.components/XRInteractor.ts:56
rayThickness?numberPointer ray thickness (diameter), metres.components/XRInteractor.ts:58