Search Unity

PlaneWithinInfinity? How to make my own infinity plane work in AR

Discussion in 'AR' started by IlluBlack, Apr 1, 2020.

  1. IlluBlack

    IlluBlack

    Joined:
    Jul 8, 2015
    Posts:
    4
    I am working in a project with AR foundation, I need to allow users to move an object in an infinity plane, because the plane that AR detects is small and depends on user position.

    It is like I have to place an infinity plane in the ARPlane user selects, and then just work with this new plane. But I am getting in trouble trying to move the object in this new plane.

    I was trying first with this
    Code (CSharp):
    1. if (_arRaycastManager.Raycast(touchPosition, hits, TrackableType.PlaneWithinInfinity)
    but it never worked, I guess I don't understand what they mean with "infinity", because my object was not moving at all

    So I was trying to place a 3D big plane in the position of AR plane and move the object on it, but I don't know how to do that, I guess I should not use AR RaycastManager since it's not an ARPlane, but I still think this is not the correct approach.

    Thank you if someone can tell me what they do when trying to place objects in an infinity plane in AR