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

Question XR Interaction - focused Object just moves to 0,0,0

Discussion in 'XR Interaction Toolkit and Input' started by mltlsk, Feb 23, 2021.

  1. mltlsk

    mltlsk

    Joined:
    Nov 14, 2015
    Posts:
    13
    Hi there :)

    i have a big problem and i try for weeks now to find a solution but i dont get it.
    When ever i want to move a GameObject it just moves straight to the camera (0,0,0) and stays there. I think it is a very small thing that i forgot... a checkmark or i dont know...
    Maybe someone had the exact same problem or knows what i do wrong...
    i tried different Unity Versions from 2019.4 LTS to the newest 2020.2.5 with old or mixed Inputsystem.

    in a simple scene with only:

    AR Session Origin
    - AR Session Origin (Script)
    - AR Plane Manager (Script)
    - AR Raycast Manager (Script)

    AR Camera
    - Camera
    - Tracked Pose Driver
    - AR Camera Manager (Script)
    - AR Camera Background (Script)
    - AR Gesture Interactor (Script)

    AR Session
    - AR Session (Script)
    - AR Input Manager (Script)
    - XR Interaction Manager (Script)


    GameObject (Cube) with:
    AR Rotation Interactable
    AR Selection Interactable
    AR Translation Interactable
     
  2. chris-massie

    chris-massie

    Unity Technologies

    Joined:
    Jun 23, 2020
    Posts:
    226
    The scene hierarchy seems correct from what you describe. Try checking that the Edit > Project Settings > XR Plug-in Management has ARCore or ARKit enabled for your target platform, and that your AR Camera is tagged as the Main Camera.

    Try comparing your scene and project settings with the AR project in XR Interaction Toolkit Examples and open the ARInteraction scene.
     
    mltlsk likes this.