Skip to main content
Inspiring
Aug 22, 2016 4:09 PM UTC
Solved

How would you have an object Detect that you're looking at it?

So that you can do actions to the object like grab it, toss it etc.
Like say a door knob.
if( Rift center of sight is looking stratight at me and user presses some button on the xbox controller)
       toggle lock or unlock door

****
But i want only the closest object to be affected, if there are object in the line of sight but are behind other objects that are in the line of sight, they shouldn't react to anything.


    This topic has been closed for replies.
    CorvusVRAnswer
    Inspiring
    Aug 23, 2016 3:45 PM UTC
    Use colliders on the interactive objects and do a ray cast from the head.

    1 reply

    CorvusVRAnswer
    Inspiring
    Aug 23, 2016 3:45 PM UTC
    Use colliders on the interactive objects and do a ray cast from the head.