Forum Discussion
JakeMaier
1 year agoProtege
Cannot Get Interaction SDK Ray Interactors Working
I am trying to get the Ray Interactors from the Interaction SDK to do something as simple as grabbing and moving an interactable object, but it won't work. Here is my setup, organized to show child o...
dexum11
1 year agoProtege
Hi. I suggest you try two things:
1) There is a ray grab interaction in the ISDK comprehensive scene that demonstrates this interaction for grabbing and moving the panel using a raycast. Take a look at this for an example of how to do this interaction.
2) You can setup ray grab interactions using the new ISDK Quick Actions functionality. Right click on the interactable object, select Interaction SDK, and select Add Ray Grab Interaction. Make sure you have set up your interactor rig properly (https://developer.oculus.com/documentation/unity/unity-isdk-getting-started/#add-the-rig)
- JakeMaier1 year agoProtege
Thank you. This helped a bit. I've finally gotten the ray interactors working, and I am not 100% sure how. However, here are the things you should definitely have in your project for controller ray interaction:
- Controller objects in OVR Camera Rig (from prefab)
- Controller Ray Interactor object with Controller ref (from prefab)
- Controller Tracking Game Object (from Building Blocks)
- Let Building Block handle controller visual, or else things will get real freaky (issues with global and local positioning and parent location dependence not working)
- For interactables, do the Quick Actions Interaction SDK "Add Ray Grab Interaction" mentioned above
A combo of all of these got my Interaction SDK Ray Interactors working, but it was a difficult and confusing process. My advice is to use prefabs whenever possible to avoid having to deal with script interactions and dependencies.
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 2 years ago
- 4 months ago