Skip to content

Flashlight

Ian edited this page Jun 3, 2018 · 17 revisions

Overview

The flashlight technique allows a user to select objects with less precision required by a ray-cast. Like a real flashlight a cone volume is projected out of the controller. A user can then select an object by hovering over it with the flashlight.

There are two ways to select between objects if multiple are encompassed by the flashlight:

  1. If multiple objects are in the volume the one that is closer to the centre line of the cone is selected.
  2. If the distance between the objects to the centre line are the same then the object closest to the controller is selected.

Source paper of the technique

Liang, J., and M. Green (1994). “JDCAD: A Highly Interactive 3D Modeling System.” Computers and Graphics 18(4): 499–506.


Use as prefab

HTC VIVE:

OCULUS:


Use by manually attaching


Inspector parameters


Class methods


Test scenes


Example scenes

Clone this wiki locally