FOVE SUPPORT CENTER

IsLookingAtCollider

Answered

Comments

4 comments

  • Avatar
    Husam Katnani

    I figured this out, the GetComponent for the collider in my c# script was not properly referencing each gameobject.

    Nevertheless, in now obtaining this data I have a new question. The two gameobjects are evenly spaced in my fove interface at 60,0,150 and -60,0,150. However, when I plot the X,Y of GetLeftEyeVector, which is saved each time the eye collides with each object, I get points at 0.4,0 and -0.4,0.

    Is there anyway to transform this normalized eye vector to be the same as my gameobject location?

    1
    Comment actions Permalink
  • Avatar
    Scott Harper

    Are you wanting to find out where your eye gaze collides with each collider?

    0
    Comment actions Permalink
  • Avatar
    Husam Katnani

    No. I understand that there is variability as to when the collider reports collision (sometimes at the boundary, sometimes further in). What I want to know is what getlefteyevector is output. The SDK documentation says a normalized eye vector, but how is it normalized? How does a value of (.2, .4, 0), for example, translate to screen space or world space?

    0
    Comment actions Permalink
  • Avatar
    Lochlainn Wilson

    Hi Husam,

    I believe it is normalized (unit size) in world space. 

    Good luck.

    0
    Comment actions Permalink

Please sign in to leave a comment.