Skip to content

A sample projects demonstrating how a leap motion control can be hooked to an iPhone to control an ARKit Scene.

License

Notifications You must be signed in to change notification settings

arthurschiller/ARKit-LeapMotion

Repository files navigation

ARKit + LeapMotion

alt header

A sample projects demonstrating how a LeapMotion device can be hooked to an iPhone to control an ARKit Scene. Note: to run the project you will need a Mac computer running a current system version, a LeapMotion Controller and an iOS Device(iPhone 6S or better) running iOS 11. You will also need to install the LeapMotion V2 Desktop Tracking SDK.

Demo Video: Click here

Gettings started

  1. Open up the project with XCode 9.
  2. Connect your LeapMotion Controller and run the Mac App target.
  3. Now run the iOS target. You will see a live view of the camera with a simple cube placed in front of you.
  4. In the iOS app tap the »Connect To Controller« button. Another view will open, where you can select »LMDSupply« from the list.
  5. Confirm the alert on your Mac app and you should be good to go.
  6. Move you hand around to control the cube.

For now translation(change of position) and rotation are supported.

How it works

The Mac app handles the interpretation of the data coming from the LeapMotion. It then bundles it into a small object which gets streamed to the iOS Device via Multipeer Connectivity. I tried achieving the same by using only Bluetooth. The current solution is way more stable and should produce almost no noticeable lag.

Credits & Links

More to come…

About

A sample projects demonstrating how a leap motion control can be hooked to an iPhone to control an ARKit Scene.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published