Jump to content
Happy Holidays! Limited Staff Responses: 1/20 - 1/31 ×

beam mode


1128
 Share

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...