locar
    Preparing search index...

    Class ClickHandler

    Class to handle object detection via mouse clicks/touch events and raycasting.

    Index

    Constructors

    Properties

    normalisedMousePosition: Vector2 | null
    raycaster: Raycaster

    Methods

    • Cast a ray into the scene to detect objects.

      Parameters

      • camera: Camera
      • scene: Scene

      Returns Intersection<Object3D<Object3DEventMap>>[]

      • array of all intersected objects.