Oculus Hand Tracking doesn't work with collider trigger events properly?

For some reason, grabbing an object with the oculus hand tracking doesn’t seem to work properly with colliders?

What’s supposed to happen: While holding the object (mug) inside the collider, a highlight of the object will appear. When releasing the object while it’s in the collider the object will snap into place.

What actually happens: Holding the object inside the collider triggers OnTriggerEnter() and OnTriggerExit() repeatedly. Currently, I have it printing a log message when the mug’s collider triggers each of these events; so I’m pretty sure it has nothing to do with my snapping code.

Anyone else experience this? You should be able to replicate it with Oculus’s pose grab example if anyone else wants to try.

If this is a bug, anyone know where I should report it? Also, maybe there’s a work-around?

Thanks!

Just as an update, I did find a work-around that does work. Instead, I’m checking for the distance between the object’s transform and an anchor transform. It’s not very efficient but it works:

Still looking for suggestions to the above problem if anyone has any.

Turns out it was something with my code. I was making the object moveable based on whether or not the person was grabbing it. Whether or not the object was grabbed would change how it interacts with the collider. I wasn’t setting the grab variable in the right places. My bad.