Skip to content

Absolute and Relative Mapping

Ian edited this page Nov 2, 2018 · 9 revisions

Overview

Absolute and relative mapping is in the form of a Raycast (However It could be adapted to a simple hand technique). When you press a set button the movement of the virtual controller relative to your real controller is scaled with a ration of 10:1. By doing this you can be precise when selecting small or distant objects with the ray. This is because the distance you have to move your hand across an object is amplified 10x due to the ratio.

Source paper of the technique:

Kopper, R., D. Bowman, M. Silva, and R. McMahan (2010). “A Human Motor Behavior Model for Distal Pointing Tasks.” International Journal of Human-Computer Studies 68(10): 603–615.


Use by manually attaching

To manually attach the ARM to the Camerarig VR components if the auto-attach fails for each hand:

  • Drag onto ARMLaser script:
    • Relevant controller onto The controlelr

Inspector parameters

For ARMLaser Script:

Parameter Default Description
Interaction Layers PickableObject The layers that the technique can interact with
Interaction Type Selection When selected an object will go into a public variable for the player to use. Currently nothing happens on manipulation.
Laser Prefab Laser The laser projected from the controller
The Model Model The controller model which is a child of the controller to be cloned when ARM is in use
Last Selected Object None The last selected object by ARM
Currently Pointing At None Object hovered over by ARM
Selected Object() Empty Event Invoked when an object is selected
Hovered() Empty Event Invoked when an object is hovered over
UnHovered() Empty Event Invoked when an object ceases being hovered over

Test/Example scenes

Major example scene under:

  • Assets/Technique Example Scenes/Scenes/ARMExample

Clone this wiki locally