How to detect vertical planes in ARKit?

前端 未结 7 1996
闹比i
闹比i 2020-12-12 19:30

How is it possible to implement a vertical plane detection (i.e. for walls)?

let configuration = ARWorldTrackingSessionConfiguration()
configuration.planeDet         


        
7条回答
  •  天命终不由人
    2020-12-12 19:45

    Support for this is coming with iOS 11.3:

    static var vertical: ARWorldTrackingConfiguration.PlaneDetection

    The session detects surfaces that are parallel to gravity (regardless of other orientation).

    https://developer.apple.com/documentation/arkit/arworldtrackingconfiguration.planedetection https://developer.apple.com/documentation/arkit/arworldtrackingconfiguration.planedetection/2867271-vertical

提交回复
热议问题