Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Join us on Dec 8, 2022, between 7 am & 7 pm EST, in the DOTS Dev Blitz Day 2022 - Q&A forum, Discord, and Unity3D Subreddit to learn more about DOTS directly from the Unity Developers.
    Dismiss Notice
  3. Have a look at our Games Focus blog post series which will show what Unity is doing for all game developers – now, next year, and in the future.
    Dismiss Notice

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