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. We’re making changes to the Unity Runtime Fee pricing policy that we announced on September 12th. Access our latest thread for more information!
    Dismiss Notice
  3. Dismiss Notice

ARKit touch instanciated object to interact with it (tap on it)

Discussion in 'AR' started by reinabada, Dec 8, 2017.

  1. reinabada

    reinabada

    Joined:
    Apr 13, 2017
    Posts:
    7
    Hello everyone!
    I am super new to ARKit, I purchased the Udacity course but it is of no help :/

    I am stuck in this:
    How can I touch a 3D object (a 3D pet) I instantiated by taping on it and make it for example pop a Menu.
    Do you know any tutorials or help I can get with this?

    Thank you!
    Maria
     
  2. christophergoy

    christophergoy

    Unity Technologies

    Joined:
    Sep 16, 2015
    Posts:
    735
    Hi @reinabada,
    You can look into the Raycast API. There is an example here of how to create a ray where someone touches their phone. That should get you started. Let us know if you have further questions.
    Cheers,
    Chris
     
    reinabada likes this.
  3. unity_kL_TzixRYKkpHg

    unity_kL_TzixRYKkpHg

    Joined:
    Dec 21, 2017
    Posts:
    14
    Hi @christophergoy ,
    I need to anchor a game object in a world location using unity+ arkit in a way that if I move around it , it is fixed to that location and not move and I can look at at from any angle. Could you help with this, please?
     
  4. christophergoy

    christophergoy

    Unity Technologies

    Joined:
    Sep 16, 2015
    Posts:
    735
    Hi @unity_kL_TzixRYKkpHg,
    If you just place an object in the scene you should be able to achieve this. This is what the ARKit plugin does by default.
    Cheers,
    Chris