2
0

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 3 years have passed since last update.

NeosVRのオブジェクトのすり抜けをなくし当たり判定を追加する方法【CharacterCollider】

Last updated at Posted at 2021-07-21

前回の記事ではiPhoneLiDARでスキャンした現実の物体を3Dデータ化して、NeosVR空間内に持っていく方法を紹介しました。

ただ、上記の方法のみだと、オブジェクトを自身のアバターがすり抜けてしまうという問題が生じます。

現実の物体や空間をVR空間内で体験する際、壁にあたってキャラクターの動きが止まったり、道に沿って歩けないと、イマイチ臨場感や現実感が再現できていないと感じるかもしれません。

この問題を解決するためには、NeosVRに用意されている「CharacterCollider(当たり判定)」という設定をオブジェクトに反映する必要があります。
※詳しくはNeosVRWikiを参照

この方法を活用すると、以下のツイート通り、オブジェクトに当たり判定が設定され、道に沿って歩いたり、壁に当たるとアバターの動きがしっかり止まるようになります。

CharacterCollider(当たり判定)の追加方法

以下の手順で当たり判定を設定していきます。

1.メニューから「インベントリー」を選択

2.「EssentialTools」から「CharacterColliderSetterTip」を選択

![NeosVR 2021_07_22 6_03_02.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/1214763/1e7e2625-4e3f-3bf8-9961-a80e5f1da930.png)

3.ワールド内に出現した「CharacterColliderSetterTip」を装備する

![NeosVR 2021_07_22 6_05_33.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/1214763/38e8e697-a81c-0255-5170-28e037a4ec6e.png)

4.装備完了後、当たり判定を追加したいオブジェクトにレーザーを当てトリガーを押す(マウスなら左クリック)

![NeosVR 2021_07_22 6_05_56.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/1214763/76ce7f1a-7936-81ef-842d-9fd3abc5a209.png) 画像では表示されてませんが、オブジェクトが一瞬だけ緑色に点滅したら、CharacterColliderの設定が反映されます。
2
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
2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?