Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple colliders on hands causes VRButton.cs to run OnTriggerEnter multiple times #9

Open
MintyTheCoder opened this issue Jan 11, 2024 · 1 comment
Assignees

Comments

@MintyTheCoder
Copy link
Owner

Because our hands have multiple colliders, when the button sees one it does the OnTriggerEnter, then if you push far enough (because the button is a trigger), it will recognize the other entering colliders as another press even though it really isn't.

@MintyTheCoder
Copy link
Owner Author

MintyTheCoder commented Jan 13, 2024

Maybe using a Collider array instead of the Collider object itself would fix this issue in VRButton.cs

@MintyTheCoder MintyTheCoder changed the title Multiple colliders on hands causes VRButton.cs to run OnTriggerEnter multiple times Multiple colliders on hands causes [VRButton.cs](https://github.com/MintyTheCoder/The-Streamer/blob/5ada4f732bcf6b4fddebb69d0e78f86e2ddfa868/Five%20Nights%20A%20Streamer/Assets/_Scripts/VRButton.cs) to run OnTriggerEnter multiple times Jan 13, 2024
@MintyTheCoder MintyTheCoder changed the title Multiple colliders on hands causes [VRButton.cs](https://github.com/MintyTheCoder/The-Streamer/blob/5ada4f732bcf6b4fddebb69d0e78f86e2ddfa868/Five%20Nights%20A%20Streamer/Assets/_Scripts/VRButton.cs) to run OnTriggerEnter multiple times Multiple colliders on hands causes VRButton.cs to run OnTriggerEnter multiple times Jan 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants