Jump to content

A minor bug in Unity package of SDK


Recommended Posts

I've e-mailed it to 7invensun, guess I'll also share it here
 
There is a small error in Unity version of SRanipal SDK, version 1.0.0.0, probably caused by copy-pasting error.
File: ViveSR\Scripts\SRanipal_Eye.cs, line 366
Function:
SRanipal_Eye.Focus(GazeIndex index, out Ray ray, out FocusInfo focusInfo, float maxDistance)
Description: maxDistance parameter is ignored in later call
Solution: Change line
return Focus(index, out ray, out focusInfo, 0, float.MaxValue);
to
return Focus(index, out ray, out focusInfo, 0, maxDistance);
Link to comment
Share on other sites

  • 4 weeks later...

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...