LoginSignup
5
7

More than 5 years have passed since last update.

Leapmotionで髪を撫でる

Posted at

準備

ORION BETAをインストール
https://developer.leapmotion.com/get-started

Unityパッケージをインポート
https://developer.leapmotion.com/unity

MMDの読み込み
Unityでキズナアイを読み込んでアニメーションをつける

髪を撫でる

キャラ

Unityの剛体でBulletの剛体に干渉するための設定をする。
[Model] -> [Physics Engine] -> [Bullet Physics]
bullet.png

[Physics] -> [Generate Colliders]
process.png

これでコライダーが付けられた
collider.png

最後に [Bullet Physics] -> [Join Local World]をオフにする

Leap Hands DemoからLMHeadMountedRigを使用。
RigidbodyコンポーネントをもつゲームオブジェクトにあらかじめMMD4 Mecanim Rigid Bodyスクリプトがアタッチされているのでそのまま使える。

leapmotion.gif

参考
LeapMotionでMMDキャラの髪を触ったり体動かしたり。
Leap Motion Orionを用いたヾ(・ω・*)なでなでアプリの作り方

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