7
9

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

"Unity"+"leap motion" [練習一つ]: VRGUI Project

Last updated at Posted at 2015-11-09

VRGUI Project: 「スワイプジェスチャー」

Goal: 空間に浮かぶGUIを作る

  • Step 1: UnityでLeap Motionを使ってGesture Motion認識ができる。
  • Step 2: uGUIでメニューを作って空間に浮かべる
  • Step 3:メニュー選択。任意のGameObjectからRaycastを飛ばしてメニューを選択できる。選択状態で色を変える。できたら音も。
  • Step 4:メニューで選択した項目を実行。メニューに任意のアクションを割り当てられるように実行する。

step1.

スワイプジェスチャー

  • c# code
  • Screen Shot 2015-11-09 at 16.36.29.png
  • 説明
  • "MinLength": 感知の前に最小移動ながさ(mm) "MinVelocity": 感知の前に最小移動速度(mm/s) "SwipeDirection.x/y/z": 手の移動の方の基準
  • 結果
  • down Screen Shot 2015-11-09 at 16.49.31.png

    up
    Screen Shot 2015-11-09 at 16.56.22.png

7
9
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
7
9

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?