Begin/end overlap getting triggered on the same frame

VertigeV
Wed, 11 May 2016 04:51:38 +0000
World Creation

I am making a VR game that uses head tracking to select things in the menus. I have a collider attached to the HMD camera and it triggers overlap events when it hits menu items. So far, simple.

However, it seems to trigger begin overlap and end overlap during the same frame. If I look at the menu item and print something on begin and end overlaps, the log gets spammed with begin, end, begin, end, and so on even though the collider hasn’t moved from the menu item.

Could this have something to do with temporal reprojection?

I thought about using a ray cast but if it’s using the same transform as the collider, I will most likely have the same issue.

Any ideas?

Thanks!

Aurelien

18 posts - 11 participants