Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
XR Interaction Toolkit 2.0.0 正式リリース記念パピコ / xrdn...
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Denik
March 16, 2022
Technology
0
8.1k
XR Interaction Toolkit 2.0.0 正式リリース記念パピコ / xrdnk-xrmtg-lt-20220316
こちらのイベントでの発表資料です
https://osaka-driven-dev-br-tokyo.connpass.com/event/241110/
Denik
March 16, 2022
Tweet
Share
More Decks by Denik
See All by Denik
Oculus Interaction SDK 概説 / xrdnk-caunity-LT4
xrdnk
0
10k
Unity Localization で多言語対応実装しよう / xrdnk-yokohamaunity-lt10-20220513
xrdnk
0
7.7k
Unidux を用いたマルチシーン構成の画面遷移 / xrdnk-unity-otonanolt-2021
xrdnk
0
5.7k
Unity Cloud Save でプレイヤーデータのクラウド保存しよう / xrdnk-yokohamaunitylt9
xrdnk
0
1.7k
Feel でゲームのエフェクトを豪華にしよう / xrdnk-yokohamaunityLT8
xrdnk
1
1.9k
Unidux Scene Transition Hands-on / xrdnk-unidux-scene-transition-hands-on
xrdnk
1
470
新MLAPIでマルチゲームを作ってみた / xrdnk-gotandaunityLT19-presentation
xrdnk
1
4.2k
三種の神器とMVRPパターン / xrdnk-three-sacred-treasures-and-mvrp-pattern
xrdnk
1
7.3k
MLAPIでマルチゲームを作ってみた / xrdnk-roppongiunityLT8-presentation
xrdnk
1
3.1k
Other Decks in Technology
See All in Technology
今日から始めるAmazon Bedrock AgentCore
har1101
4
420
Oracle Cloud Observability and Management Platform - OCI 運用監視サービス概要 -
oracle4engineer
PRO
2
14k
1,000 にも届く AWS Organizations 組織のポリシー運用をちゃんとしたい、という話
kazzpapa3
0
110
プロダクト成長を支える開発基盤とスケールに伴う課題
yuu26
4
1.4k
データの整合性を保ちたいだけなんだ
shoheimitani
8
3.2k
AIエージェントを開発しよう!-AgentCore活用の勘所-
yukiogawa
0
180
広告の効果検証を題材にした因果推論の精度検証について
zozotech
PRO
0
210
Frontier Agents (Kiro autonomous agent / AWS Security Agent / AWS DevOps Agent) の紹介
msysh
3
180
クレジットカード決済基盤を支えるSRE - 厳格な監査とSRE運用の両立 (SRE Kaigi 2026)
capytan
6
2.8k
Greatest Disaster Hits in Web Performance
guaca
0
280
予期せぬコストの急増を障害のように扱う――「コスト版ポストモーテム」の導入とその後の改善
muziyoshiz
1
2k
AI駆動開発を事業のコアに置く
tasukuonizawa
1
360
Featured
See All Featured
Building Adaptive Systems
keathley
44
2.9k
Mind Mapping
helmedeiros
PRO
0
90
Understanding Cognitive Biases in Performance Measurement
bluesmoon
32
2.8k
How to build a perfect <img>
jonoalderson
1
4.9k
The SEO identity crisis: Don't let AI make you average
varn
0
330
[RailsConf 2023] Rails as a piece of cake
palkan
59
6.3k
Why You Should Never Use an ORM
jnunemaker
PRO
61
9.7k
Game over? The fight for quality and originality in the time of robots
wayneb77
1
120
Max Prin - Stacking Signals: How International SEO Comes Together (And Falls Apart)
techseoconnect
PRO
0
86
The agentic SEO stack - context over prompts
schlessera
0
640
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.6k
Learning to Love Humans: Emotional Interface Design
aarron
275
41k
Transcript
XR Interaction Toolkit 2.0.0 正式リリース記念パピコ 2022/03/16 XRMTG Denik (@xrdnk) Unity
/ VR Engineer
自己紹介 Denik (@xrdnk) ◼ Unity / VR エンジニア ◼ MyDearest,
Inc. ◼ 技術ブログ書いてたりしてる
アジェンダ ◼ はじめに ◼ 既存機能 ◼ 新機能 ◼ 変更点 ◼
終わりに
はじめに
XR Interaction Toolkit 2.0.0 (XRTK2) Unity 提供の VR/AR 開発用のツールキット XR
に必要なシステムの抽象化がコンセプト 2022年2月に正式リリース(ver 2.0.0)されました 本発表では VR の分野のみを取り上げます
XRTK2 の Pros / Cons ◼ Pros ◼ マルチプラットフォーム対応が簡単 ◼
Unity 公式提供 ◼ Cons ◼ 各ヘッドセット固有機能が利用できない (Quest のハントラなど) ◼ Input System の事前知識が必要 ヘッドセット固有機能をアプリに導入しない場合は基本は XR Interaction Toolkit + OpenXR Plugin を利用でよさそう
既存機能
Locomotion Components
Continuous Move Provider スムーズ移動(連続的な移動)
Continuous Turn Provider スムーズターン(連続的に視点を左右に回転させる)
Snap Turn Provider スナップターン(指定角度分,視点を左右に瞬時に回転させる)
Character Controller Driver Character Controller の Height を動的に変更させる 適用前 適用後
Teleportation Components
Teleportation Provider 以下のコンポーネントがアタッチされているところにワープできる Teleportation Area (平面) / Teleportation Anchor (点)
Interaction Components
Interactor と Interactable の関係性 Interactor インタラクションの主体 (コントローラ etc.) Interactable インタラクションの客体
(物体/UIパネル etc.) Interaction Manager インタラクションシステム の管理クラス OnHover OnSelect OnHover OnSelect
XR Ray Interactor 遠隔インタラクション実行コンポーネント
XR Direct Interactor 近接インタラクション実行コンポーネント
XR Socket Interactor 吸着インタラクション実行コンポーネント
XR Socket Interactor 応用例
XR Grab Interactable / XR Simple Interactable XR Grab Interactable
をアタッチすると掴めるようになる XR Simple Interactable で Interactor とインタラクション可能に
Misc
XR Device Simulator キーボ・マウスで VR シミュレーション操作 Input System 前提であることに注意 操作方法の例
◼ Shift キー 左コントローラ操作 ◼ Space キー 右コントローラ操作 ◼ Shift + WASD 左コントローラのスティック操作 ◼ Space キー + WASD 右コントローラのスティック操作
Events ◼ Audio Events インタラクション時の効果音再生 ◼ Haptic Events インタラクション時の振動再生 ◼
Interact Events インタラクション時の特有イベント発火 上記は Inspector 上で Unity Events のように設定できる スクリプト上でも同様に設定できる
新機能
XRTK Interaction Layers Project Settings に XRTK 専用の Interaction Layers
が追加 Interaction 用の Layer Mask が Unity Physics Layer から XRTK 専用 Interaction Layers に変更 Layer のスロットが足らない問題が緩和
Select Mode Interactables に同時に Select できる Interactor の数を 制御できる Select
Mode のプロパティが追加 これを利用することでMultiple 設定にすることで 複数の手で同時に操作可能になります (Grab はデフォルトでは Single 固定設定)
Allow Hovered Activate XRTK の Interaction には Hover,Select,Activate の 3つの状態があり,Activate
は Select 状態の時でしか 発火できなかった (トリガーイベントが発火できなかった) Allow Hovered Activate を有効にすることで Hover 状態で Activate (トリガーイベント) が発火可能に
Misc ◼ firstInteractableSelected / firstInteractorSelecting スタックされている Interactables の中で 最初のオブジェクトを取得できるプロパティ追加 ◼
Grab Interactable の MovementType MovementType が Select 中に動的に変更可能に ◼ ゲームパッド・ジョイスティック入力サポート
変更点
XR Rig → XR Origin XRRig が廃止され,新依存パッケージの XR Core Utilities
の XROrigin に置換されました. 破壊的変更ではなく互換性はあるので実は大きな問題ではない
おわりに
総括 ◼ XRTK 2.0 正式版リリース ◼ これまでの XRTK の機能を紹介 ◼
XRTK 2.0 の新機能・変更点などを一部紹介 ◼ 痒い所に手が届くような設定が増えた印象(助かる) ◼ 一部しか紹介しきれてないので興味があれば以下を参照 https://docs.unity3d.com/Packages/
[email protected]
/changelog/CHANGELOG.html