Provides ray information in order to do ray casting

interface RayProvider {
    getRaycastInfo(): RaycastInfo;
    isAvailable(): boolean;
    reset(): void;
}

Implemented by

Methods

  • Returns whether the ray provider is an usable state or not (for instance, hands are not tracked)

    Returns boolean

  • Reset function that can be called for instance when hands are not tracked to reset inner logics

    Returns void