cancel
Showing results for 
Search instead for 
Did you mean: 

How can i check if primaryhandtrigger is pressed?

GoSlapPC
Honored Guest
Hello everyone,

Me and some friends are developing a new VR game where we are currently making a vr character enabled to use guns that he has on his body.
So far it works well, but the primaryindextrigger is a bit sketchy. So my question it, do you folks know any other way to check if the primaryindextrigger is pressed, other than checking to see if it's return float is bigger than something else? We are currently using it by checking i the float it returns is bigger than 0.17, which works okay, but sometimes bugs a bit. 

Hope you folks knows a solution to this or a workaround

Kindly
Steffen Nielsen
1 REPLY 1

MikeF
Trustee
thats one way of doing it, and it should work ok though that threshold is pretty low so i could see some miss fires depending on the sensitivity of the touch triggers since that tends to vary slightly with each set. Try upping it to something like 0.8 to ensure the trigger pull is intentional and not just a hardware variance or accidental nudge