Magic Leap by torynfarr - 1

Games & Projects

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

Unity 2019.2.5f1GNU General Public License v3.0Updated 8 days agoCreated on August 30th, 2019
Go to source

Magic Leap

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

01.Two Handed Touch

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.

02.Pinch and Drag

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
Show all projects by torynfarr