Search Unity

Bounded Plane Vertical Alignment using AR Foundation on iOS

Discussion in 'Handheld AR' started by whogas, Sep 20, 2018.

  1. whogas

    whogas

    Joined:
    Oct 18, 2013
    Posts:
    30
    I am in the midst of moving an AR Foundation Android project over to iOS. Most aspects are transferring well from the ARCore underpinnings to ARKit. One issue I was running into had to do with vertical plane detection. It seems like all non-horizontal planes detected in iOS have their bounded plane alignments set to PlaneAlignment.NonAxis and never to PlaneAlignment.Vertical. Additionally, the initial rotation of the plane seems to align with the horizontal and then it is rotated 90° to be aligned with what a vertical plane would be in the first planeUpdated event. The PlaneAlignment property never appears to change from "NonAxis" to "Vertical" when this happens.

    I can work around this problem the way I have interpreted it, but I wanted to know if I'm missing something here in case I get burned down the road or if this is working as intended/expected.

    Thanks!