Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    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

    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

    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