Search Unity

Leap Motion For Buttons and levers

Discussion in 'AR/VR (XR) Discussion' started by kiranearitachi, Jan 29, 2015.

  1. kiranearitachi

    kiranearitachi

    Joined:
    Oct 15, 2013
    Posts:
    3
    Hello I am working on my senior project for college and I was wondering if anyone had any links to examples or can help me with how to use leap motion on a first person character to push buttons and pull levers.
     
  2. TonyLi

    TonyLi

    Joined:
    Apr 10, 2012
    Posts:
    12,697
  3. kiranearitachi

    kiranearitachi

    Joined:
    Oct 15, 2013
    Posts:
    3
    yes but can it be used on a moving character like an fps?
     
  4. TonyLi

    TonyLi

    Joined:
    Apr 10, 2012
    Posts:
    12,697
    You'd have to handle the code that mediates between Leap Motion and your first person controller.
     
  5. kiranearitachi

    kiranearitachi

    Joined:
    Oct 15, 2013
    Posts:
    3
    is there any examples for this or is there a better way to do motion input?
     
  6. mgear

    mgear

    Joined:
    Aug 3, 2010
    Posts:
    9,439
    Many nice demos in this package also,
    https://developer.leapmotion.com/downloads/unity

    Clicking buttons would be easy, just add trigger to the button and then collider on the fingers..
    Levers, maybe add some hinge joint to it, then just grab the lever like in those box demos..
    (there are some gesture detected in leap also, could check those)

    Can try kinect, but less accurate if need hands only..

    Or Thalmic Myo, has gyro/IMU and some gesture detection.. (but i'd say leap is more suitable for this)