Need help with Vive controler
Hello friendly Unity community (hehe).
I'm stuck for a few days now on a particular problem in my VR project.
I'm trying to make my box that has a collider-trigger recognize my "TriggerClicker" input on my controller.
I have googled everything possible.. i'm pretty sure the thing is sooo simple to do but i'm a relatively new c# dev and this one thing is so frustrateing..
My controlers are taged "GamepadL" and "GamepadR".. the code on my box is: ↓↓↓
void OnTriggerEnter(Collider c) { if ((c.tag == "GamepadL" || c.tag == "GamepadR")) { Debug.Log("Trigger entered senpai"); //Check if the trigger on the controller is pressed here } If i can get it to detect trigger imputs from my controllers i can then tie it with other scripts and make it change bools, etc.
Can someone please help?
Your answer
Follow this Question
Related Questions
SteamVR Hand Slim is offset from real controller location, but only on the Valve Index. 1 Answer
Changing eye height with steamVR Camera Rig 2 Answers
Please help me solve the problem with shoot a gun(HTC VIVE) 1 Answer
HTC Vive Pro crashes Unity, Steam VR reads "(unresponsive) Unity.exe" 0 Answers
(XR Input) Why does Oculus Rift work fine, but HTC Vive inputs stays at 0 ? 0 Answers