FlareStart
HomeNewsHow ToSources
FlareStart

Where developers start their day. All the tech news & tutorials that matter, in one place.

Quick Links

  • Home
  • News
  • Tutorials
  • Sources
  • Privacy Policy

Connect

© 2026 FlareStart. All rights reserved.

Back to articles
[LeapMotion + UniRx] Moving a Camera with Hand Gestures: Two-Hand Edition
NewsWeb Development

[LeapMotion + UniRx] Moving a Camera with Hand Gestures: Two-Hand Edition

via Dev.toShoichi Okaniwa3h ago

Introduction In the previous article , I implemented translating the Main Camera using one-hand Leap Motion input when no mouse or keyboard is available. This time, I'm adding rotation and zoom control as well. Demo Here's what I built. I exhibited it at Looking Glass Meetup (Rukimito) . // Detect dark theme var iframe = document.getElementById('tweet-1109754332092624896-397'); if (document.body.className.includes('dark-theme')) { iframe.src = "https://platform.twitter.com/embed/Tweet.html?id=1109754332092624896&theme=dark" } When both hands are in a fist, the camera responds to hand movement with three operations: Scale (zoom in/out) Rotation Translation (pan) Sample Code Here is the full code. It is intended to be attached to the Main Camera . using Leap ; using System.Collections.Generic ; using System.Linq ; using UniRx ; using UniRx.Triggers ; using UnityEngine ; /// <summary> /// Camera controller /// </summary> public class CameraController : MonoBehaviour { /** Camera movement

Continue reading on Dev.to

Opens in a new tab

Read Full Article
2 views

Related Articles

PostGIS Distance Calculations: Why ST_Distance Returns Degrees Instead of Meters
News

PostGIS Distance Calculations: Why ST_Distance Returns Degrees Instead of Meters

Medium Programming • 3h ago

News

Best Block Blast Solver (2026) Instantly Solve Any Level

Medium Programming • 3h ago

Amazon Spring Sale live blog 2026: Breaking discounts on Apple, Dyson, and more
News

Amazon Spring Sale live blog 2026: Breaking discounts on Apple, Dyson, and more

ZDNet • 3h ago

Anthropic Literally Sued the US Defense Department for Banning It While Giving the Contract to…
News

Anthropic Literally Sued the US Defense Department for Banning It While Giving the Contract to…

Medium Programming • 4h ago

Here’s what Verge readers are buying during Amazon’s Big Spring Sale
News

Here’s what Verge readers are buying during Amazon’s Big Spring Sale

The Verge • 4h ago

Discover More Articles