0. Contents of This Article
This article covers interaction with controllers and pointers (Ray) in Meta Quest. Specifically, it explains the procedure for detecting Hover (pointing) and Selection (click) using Ray. You can confirm the operation in the sample provided on GitHub, in the 05-RayInteraction or 05-RayInteraction-AR scenes.
*This video is for AR, but it supports both AR and VR.
It should be noted that this article assumes manipulating the cube displayed in VR or AR scenes created with the following links. Since it starts with just viewing the cube in Quest without adding any special components to it, you can achieve object manipulation in other projects by following the content of this article and subsequent articles. (Assumes the use of OVRCameraRigInteraction prefab instead of OVRCameraRig)
[VR Version]
[AR Version]
1. Duplicate the Scene
It is possible to edit the scene created in the previous article, but to avoid breaking it while trying object manipulation, duplicate the scene. Skip if not needed.
- Open the VR or AR scene created in the previous article
- Click File -> Save As...
- Save the current scene with a new name
* In this article, it will be named RayInteraction - Ensure that the scene name displayed in the Hierarchy is RayInteraction