Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags
(3 edits)

Do you know what button that maps to on an index controller? Cause my menu button on my index controllers just bring up my steam menu.

Edit: I looked into it a little bit, I guess the oculus has different functionality mapped to the left and right menu buttons but on the index both are reserved for opening the steamvr menu. Not sure if there's anything that can be done about that. That's unfortunate. I decided to make my menu button one of the face buttons in my game, but I think in the future I might do a wrist attached virtual button to open the menu. I did in the past for a previous jam but I wanted the menu button to be accessible to all. Though it had the drawback of people accidentally pressing it.

Edit 2: Also did you end up making the buttons yourself? I feel like I did something similar before or I've used buttons similar to this. It's just a vague memory but it kind of seems like you rolled your own sockets/buttons and if so I think that's really cool. Like you are just taking the difference between the position of the button and where it should be and if it goes past a certain y index then it counts as pressed or something? And then just lerping it back to 0, 0, 0? I actually had to come up with something similar for my bullet system. I think if you lock it on the x and z axis then it will work a little better and you can further lock it to only moving a certain amount in the y axis so that it won't go too far down or too far up.

Dang, didn’t know that about the index controllers. I’ve ever only used oculus ones. Definitely good to know going forward though!


And yeah, I made those buttons myself, mostly! I based them off of FistFullOfShrimp’s video on YouTube. The button mesh has a rigid body, and there’s a trigger collider that’s a little underneath the mesh that gets triggered whenever the button is pushed into it. And then there’s a joint component that’s also applied to the button that makes it rebound back up. 
And yeah, I think I tried constraining the movement on the x and z axis, but due to another issue I was having with them I took that away to figure out what was wrong, and just never turned it back on. They were very much a “I’ll get back to that after I do x” kinda thing lol, and just kept getting pushed back. It’s definitely something I’d like to refine for future use, as the overall implementation is pretty straightforward.