Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Virtual Reality Room-Scale VR Interacting with Objects Script Setup and Detecting Intersections

John Kirby Campbell
John Kirby Campbell
3,552 Points

I'm using Oculus Rift with Touch & am having trouble porting this lesson over to the Oculus Avatar Touch controller.

Hey! So I've managed to figure out how to get the Oculus Hands and controllers to show up, and i've done some digging online for ways to grab similar to this project. Is there a way to use the Oculus Touch controllers with the SteamVR plugin so I don't go totally rogue on this lesson? Seems like there may be a simple fix to mapping the controller (left) and (right) to the touch controller.

Where I'm at: Option 1: I've gotten the code written for the SteamVR Plugin, and when it runs I see no controllers or hands at all. (Probably because I'm using touch controllers and there is a disconnect in the controller objects)

Option 2: I've imported Oculus Avatar SDK and the rest of the Oculus SDK, and managed to get the hands and controllers showing up and responding to all of my inputs, yet I'm on my own as far as figuring out the code for grabbing and throwing in relation to this project. (any insight on this would be great). ((fyi, it is switched over to oculus on the player settings instead of OpenVR)).

Thanks for the help in advance, I'm willing to go either route in the end, really whatever keeps me on track for the lessons! -k