InteractorLineVisual uses a modified line renderer to display the ray interactor visual Uses interactor locus and direction

Hierarchy (view full)

Constructors

Properties

_beginColor: vec3 = ...
_endColor: vec3 = ...
_interactor?: default
api: Record<string, any>
enabled: boolean

If disabled, the Component will stop enacting its behavior.

lineStyle: number = 2
name: string
sceneObject: SceneObject
uniqueIdentifier: string
updatePriority: number

Accessors

  • get beginColor(): vec3
  • Gets the color of the visual from the start.

    Returns vec3

  • set beginColor(color): void
  • Sets the color of the visual from the start.

    Parameters

    Returns void

  • get endColor(): vec3
  • Gets the color of the visual from the end.

    Returns vec3

  • set endColor(color): void
  • Sets the color of the visual from the end.

    Parameters

    Returns void

  • get isEnabled(): boolean
  • Gets whether the visual is active (can be shown if hand is in frame and we're in far field targeting mode).

    Returns boolean

  • set isEnabled(isEnabled): void
  • Sets whether the visual can be shown, so developers can show/hide the ray in certain parts of their lens.

    Parameters

    • isEnabled: boolean

    Returns void

  • get visualStyle(): VisualStyle
  • Gets the current visual style.

    Returns VisualStyle

  • set visualStyle(style): void
  • Sets how the visuals for the line drawer should be shown.

    Parameters

    Returns void

Methods

  • Returns true if the object matches or derives from the passed in type.

    Parameters

    • type: string

    Returns boolean

  • Returns true if this object is the same as other. Useful for checking if two references point to the same thing.

    Parameters

    Returns boolean

  • Returns void

  • Destroys cursor & line renderer when the custom component is destroyed.

    Returns void

  • Updates the line visual each frame

    Returns void