UNPKG

@threlte/xr

Version:

Tools to more easily create VR and AR experiences with Threlte

28 lines (27 loc) 1.11 kB
import { type ComputeFunction } from './compute'; import type { FilterFunction } from './types'; export type PointerControlsOptions = { enabled?: boolean; /** * The compute function is responsible for updating the state of the pointerControls plugin. * It needs to set up the raycaster and the pointer vector. If no compute function is provided, * the plugin will use the default compute function. */ compute?: ComputeFunction; /** * The filter function is responsible for filtering and sorting the * intersections. By default, the intersections are sorted by distance. If no * filter function is provided, the plugin will use the default filter function. */ filter?: FilterFunction; /** * Sets the interval at which raycasting occurs. * * @default 1 / 40 */ fixedStep?: number; }; export declare const pointerControls: (handedness: "left" | "right", options?: PointerControlsOptions) => { enabled: import("@threlte/core").CurrentWritable<boolean>; hovered: Map<string, import("./types").IntersectionEvent>; };