LoginSignup
0
0

More than 5 years have passed since last update.

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

Last updated at Posted at 2015-11-16

VRGUI Project: 「指のポジション!」

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


  • Step 1: UnityでLeap Motionを使ってGesture Motion認識ができる。

  • Step 2: uGUIでメニューを作って空間に浮かべる

  • Step 3:メニュー選択。任意のGameObjectからRaycastを飛ばしてメニューを選択できる。選択状態で色を変える。できたら音も。

  • Step 4:メニューで選択した項目を実行。メニューに任意のアクションを割り当てられるように実行する。


Step2をしている中で、指のpositionとスピード(velocity)を求める。
目標は二つの指でmotionの感知するために。

指のポジション



Screen Shot 2015-11-16 at 17.05.39.png

説明
a  handModel.fingers[i] :べつべつの指のため,
i=0~4;親指からて小指まで 0、1、2、3、4

b .GetTipPosition().x: べつべつの指のx-position
.GetTipPosition() -> x,y,z position




指のvelocity(速力):次のブログで。。。


Screen Shot 2015-11-16 at 17.06.07.png

unityはrigid bodyがあるcomponentの速力を求めることができる。

0
0
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
0
0