Directly interacting with objects in VR, such as grabbing items and using them to perform other actions, is a bit more complex. And, it can be tricky to get right. So it doesn't make sense, especially in this book, to grow our own interaction system. Unfortunately, there is not a single standard toolkit either. But, there are more than a few very good toolkits you can use, albeit most are specific to individual target platforms.
Generally, the architecture is similar among these solutions:
- Provides prefabs for the player camera rig
- Camera rig includes objects for your hands, including input controller components
- Hand objects include components that trigger events when interactions occur
- An interactable component is added to any objects in the scene that can be interacted with using input events
- Additional components and options extend the interactable...