Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Have a look at our Games Focus blog post series which will show what Unity is doing for all game developers – now, next year, and in the future.
    Dismiss Notice

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,153
  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,153
    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:
    8,093
    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)