【发布时间】:2022-01-21 09:18:08
【问题描述】:
我们能够使用位掩码进行自定义光线投射:
let hitTest = sceneView.hitTest(location, options: [categoryBitMask: bitmask])
但 hitTest 现在已被弃用,我不知道如何为光线投射查询设置位掩码:
let query = sceneView.raycastQuery(from: location, allowing: .estimatedPlane, alignment: .horizontal)
【问题讨论】:
标签: swift scenekit arkit raycasting realitykit