Loading lessons...
XR Interaction Toolkit
XR Interaction Toolkit
The XR Interaction Toolkit (XRI) is a component-based system that allows you to add interactivity to your VR/AR scenes without writing raw tracking mathematics.
Interactors and Interactables
XRI splits interaction into two roles:
- Interactors: Components attached to the player's hands or controllers (e.g., Direct Interactor to grab objects, Ray Interactor to point at distant objects, or Poke Interactor to press buttons).
- Interactables: Components attached to items in the scene that the player can interact with (e.g., XR Grab Interactable to allow pickup).
Teleportation and Locomotion
To allow players to move through VR spaces without causing motion sickness, XRI includes teleportation:
- Teleportation Area: A collider surface (like a floor plane) where players can teleport anywhere.
- Teleportation Anchor: A specific node location (like a glowing pad) that snaps the player to a precise position and rotation when targeted.
- Locomotion System: Controls how the XR Origin coordinates translate in response to controller thumbsticks.
TL;DR
- XR Interaction Toolkit (XRI) manages VR/AR physics interactions.
- Hand controllers have Interactors (Direct, Ray, Poke).
- Grab-able objects require the XR Grab Interactable component.
- Set up Teleportation Areas and Anchors to enable comfortable VR locomotion.