1128 Posted August 21, 2019 Share Posted August 21, 2019 hi there, i m facing issue with WaveVR_ControllerInputModule, where the beam mode set to "Beam" but the pointer is not hovering on the UI Elements when the user is far from the UI canvas. may i know exactly at what distance till the beam mode will work. Link to comment Share on other sites More sharing options...
Cotta Posted August 21, 2019 Share Posted August 21, 2019 Hi @1128, The max distance of the beam is 9.5m. You may find below lines in WaveVR_Beam.cs [HideInInspector] public float endOffsetMax = 9.5f; // Maximum distance of end offset (in meters). You may change this value if you need to make it longer. Link to comment Share on other sites More sharing options...
1128 Posted August 21, 2019 Author Share Posted August 21, 2019 thank you for quick response. As you said i changed the "endOffsetMax" value to 50m and it looks like issue still exist. details 1. canvas is 28m far from the user i.e Z value of transform component. @Cotta Link to comment Share on other sites More sharing options...
Cotta Posted August 22, 2019 Share Posted August 22, 2019 Hi @1128, Sorry. There is one more place to modify as well. In WaveVR_ControllerPointer.cs private const float pointerDistanceMax = 10.0f; // Max length of Beam + 0.5m Please change this line accordingly. For example, if you changed endOffsetMax to 50.0f, then pointerDistanceMax should be 50.5f. Link to comment Share on other sites More sharing options...
1128 Posted August 22, 2019 Author Share Posted August 22, 2019 hurray...... it worked. thank you 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now