Pickup and Interact Proximity value does not match VRChat's
CyanLaser opened this issue · comments
CyanEmu's proximity requires a much closer distance compared to VRChat's. Proximity is not measured in standard unity units. This requires research on what the units represent and how they scale with the player camera.
Turns out that proximity is based on avatar/camera size. Using a few avatars, here are some numbers for s proximity of 1:
Dist | Camera size |
---|---|
1.233 | 0.1864 |
1.68 | 0.5475 |
2.162 | 0.9174 |
2.165 | 0.9322 |
2.42 | 1.1302 |
3.776 | 2.0706 |
5.463 | 3.5711 |
CyanEmu's player controller is about 2m tall. Comparing to camera scale for avatars around this height, the camera scale should be about 1.13 units. This means a proximity of 1, should be able to reach about 2.4 units away, compared to 1.
Should be fixed in v0.3.0