Search Unity

How to USE objets (with laser) in VRTK ?

Discussion in 'AR/VR (XR) Discussion' started by remiC3D, Jan 10, 2019.

  1. remiC3D

    remiC3D

    Joined:
    Dec 15, 2017
    Posts:
    30
    Hello,

    I'm new to using the VR Toolkit, and 'im currently struggling with how to trigger the InteractableObjectUsed event on an Interactable Object. I would like this object to be used (at a distance, using the laser pointer) on Trigger Press, and to be simply selected on Touchpad Press.

    Therefore, I've setup my right hand VRTK pointer this way :
    https://ibb.co/9GndczW

    And My VRTK_Interact_Use component (also on the same right hand controller) is setup that way:
    https://ibb.co/2Z8QBhm

    Finally, the interactable object is setup this way:
    https://ibb.co/6m7jdVt

    However, when I run my scene, it seems that the InteractableObjectUsed event is triggered only when the object is selected (i.e. on TouchPad Press), and is not triggered at all on Trigger Press.

    Can someone please explain why ?

    Thanks in advance !