infoMore 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
- 説明
"MinLength": 感知の前に最小移動ながさ(mm)
"MinVelocity": 感知の前に最小移動速度(mm/s)
"SwipeDirection.x/y/z": 手の移動の方の基準
- 結果
down
up
Register as a new user and use Qiita more conveniently
- You get articles that match your needs
- You can efficiently read back useful information
- You can use dark theme
What you can do with signing up