ValveSoftware / steamvr_unity_plugin

SteamVR Unity Plugin - Documentation at: https://valvesoftware.github.io/steamvr_unity_plugin/
BSD 3-Clause "New" or "Revised" License
1.03k stars 255 forks source link

can the SteamVR Unity fallback camera emulator interact within more distance? #849

Open jensteinkamp opened 3 years ago

jensteinkamp commented 3 years ago

I am using your amazing SteamVR emulator to publish projects to webGL in Unity, there are so many amazing tools. This has been a great resource for teaching during Covid-19. I was wondering if the interaction could work within a larger distance? I noticed you need to be pretty close to an object to throw it for example. Here is a link: If you backup, you can no longer interact. https://classes.dma.ucla.edu/Fall20/156-1/projects/examples/A_vote_primitives_player

Here are some notes on how to setup a webGL with your software: http://users.design.ucla.edu/~cariesta/3DCourseNotes/html/webgl_post_process.html

Timor666 commented 3 years ago

在Hand.cs代码,射线距离在这里,不知道是否可以帮助到你 行74
public float noSteamVRFallbackMaxDistanceNoItem = 10.0f; 方法名 UpdateNoSteamVRFallback() 行1007 if (Physics.Raycast(ray, out raycastHit, noSteamVRFallbackMaxDistanceNoItem))