Contact Receiver Box with Face Proximity calculate the Incorrect Distance
DX_30
I was trying to do the following setup (indicated in the image) to be able to create a pointer to select items in a menu.
I noticed that the pointer (in the test case, a contact sender type Box) doesn't calculate the interaction between the cursor and the contact receiver correctly.
In my tests, it seems to creates a bonding box around the cursor and calculates based on that, thus showing a proximity that is not consistent with the intersection of the sender with the receiver.
This bug affects all currently available versions: public, open beta, Unity-6 and SDK
here an an avatar with a example of the bug:
and here the link for a VRCfury prefab with the setup:
*Note: If you change the cursor type from box to Capsule, the receiver stops working completely, this is also not expected behavior.
Photo Viewer
View photos in a modal
Log In
DX_30
From my research, it seems to have something to do with scale, both the scale on the contact receiver component and the gameobject.
Changing the scale of the X and Y axes does not change how the distance is calculated.
The Gizmos visuals are updated, but the calculation doesn't appear to use the same information.
It's probably something left over from the capsule and sphere code, it ignores the scale of the gameObject if the scale is not uniform.
RuneFox237
This may be related to the issue I found w/ long & wide but thin boxes interacting incorrectly w/ long and thin capsules as your note at the end would result a similar setup to what I had in my testing.
I should probably test that same setup w/ a box contact instead to see if something similar occurs.