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

Bounded Plane Vertical Alignment using AR Foundation on iOS

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

  1. whogas

    whogas

    Joined:
    Oct 18, 2013
    Posts:
    46
    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!