【问题标题】:Obtaining width and height of the plane detected in ARKit获取在 ARKit 中检测到的平面的宽度和高度
【发布时间】:2020-10-18 20:50:30
【问题描述】:
func getSizeOfModel(_ node: SCNNode){

   let (min, max) = node.boundingBox
  
   let widthOfNode = max.x - min.x
   let heightOfNode = max.y - min.y
   
   print("
        Width Of Node = \(widthOfNode)
        Height Of Node = \(heightOfNode)
    ")

将它添加到 viewcontroller.swift 的跟踪和可视化飞机代码中是否符合我的目的?

【问题讨论】:

标签: ios swift unity3d augmented-reality arkit


【解决方案1】:

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2014-03-17
    • 1970-01-01
    • 2012-10-10
    • 2021-06-30
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-12-26
    相关资源
    最近更新 更多