Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question AR Foundation track gameobject

Discussion in 'AR' started by Raikage93, May 12, 2021.

  1. Raikage93

    Raikage93

    Joined:
    Apr 30, 2021
    Posts:
    1
    Hello everyboby,
    I'm new to this forum and haven't a lot of experience with AR Foundation,
    at the moment I am creating an AR game, where the player and the playing field are raycasted into the room.
    The controls are good, as are the physics, but my player should also be able to shoot bullets, so I created an bulletpoint child for it, like the bullets in the standard 3D Unity and Instantiate at that point my bullet.
    But this does not work, because my transform is not set in relation to my AR camera, when I display the transform, it shows me values that are kilometers away from the origin.
    When I put the point on my AR camera, my bullet is created as planned, but this is not the goal. How can I solve this?
    Thx for the help.

    Unity 2020.3.6f1
    AR Foundation 4.1.7
    AR Core XR Plugin 4.1.7
     
    Last edited: May 12, 2021