Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
VRfriend2016X's avatar
10 years ago
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.


  • Use colliders on the interactive objects and do a ray cast from the head.

1 Reply

Replies have been turned off for this discussion
  • Use colliders on the interactive objects and do a ray cast from the head.