Giter VIP home page Giter VIP logo

magic-leap's Introduction

Magic Leap

This repository contains various sample Unity projects designed for the Magic Leap One spatial computing device.

This sample uses hand tracking and demonstrates how to detect when the keypoint on the tip of your index finger on either hand touches a game object.

  • When a game object has been touched, the color will change to cyan.

  • When you're no longer touching that object, the color will be reset to white.

  • If the index fingers on both hands are touching the same object, the color won't be set back to white until both fingers are no longer touching that object.

  • Hand Meshing is included to facilitate occlusion. It's optional and not used to detect when an object has been touched.



This sample uses hand tracking and demonstrates one approach to picking up a game object and moving it around by holding / pinching it between the tips of your index finger and thumb on either hand.

  • When the tips of your index finger and thumb are both touching the same sphere for a set duration of time (half a second) and your hand is in the C, pinch, or OK keypose, the sphere will be picked up.

  • As your move the hand holding the sphere, the spheres position will update to the center of the gap between the tips of your index finger and thumb.

  • If you spread your fingers apart or if your hand is no longer visible, the sphere will be dropped

  • Only one hand can be used at at a time. This is to prevent the free hand from obscuring the keypoints on the hand being used to pinch a sphere.



Additional Information

  • These samples were created using Unity version 2019.2.5f1
  • The Magic Leap Unity package is version 0.22.0

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.