Search Unity

Question How to get points only when set controller hand movement used to collect objects

Discussion in 'AR/VR (XR) Discussion' started by dgyorodi, Jun 30, 2022.

  1. dgyorodi

    dgyorodi

    Joined:
    Aug 13, 2021
    Posts:
    1
    I am trying to see how I can spawn a random number of objects to 2 reference points behind the camera and add up the number of objects collected, but I want to have a restriction that objects coming from the left-hand side will only generate a point if collected with the left-hand controller and same for right hand. Is there a way to do that?

    Also, is there a way to set only a specific hand movement to generate points, like the object has to be hit like a boxing bag not grabbed in order to get a point (similar to how the FitXR game works).

    upload_2022-6-30_17-48-10.png

    upload_2022-6-30_17-48-19.png