Plane Detection

Maybe I have a wrong understanding of Planes.


As I understanding a plane can be any flat surface. By setting


configuration.planeDetection = .horizontal


I enabled plane Detection. This means if I move my camera closer to a flat surface like wood table or floor then that will be counted as detecting a plane and this will trigger the following method.


func session(_ session: ARSession, didAdd anchors: [ARAnchor]) {
        print("plane detected")
    }


The above method is never fired unless I point my camera to other SCNNodes on the screen. This is triggers and wipes out all the nodes from the scene. Am I missing something or understanding planes wrong.

Replies

I'm also experiencing this as well. Worth noting I did set the ViewController to be my session delegate, so I would expect it to fire when it detects planes. Did you ever figure this out OP?