Jump to content

Recommended Posts

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 post
Share on other sites

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 post
Share on other sites

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 post
Share on other sites

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 post
Share on other sites

Please sign in to comment

You need to be a member in order to leave a comment

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...