如何使用ARKit
和CoreLocation
在地板上设置节点(3d对象)
我想当我的距离小于20米的时候。我的物体在地面上使用高度。我使用CoreLocation和SceneKit。
你有什么想法吗?
谢谢。
发布于 2020-03-10 11:35:24
CoreLocation
框架为您提供了一个以米为单位的altitude
实例属性:
var altitude: CLLocationDistance { get }
您还可以使用floor
属性,该属性是用户所在建筑的逻辑楼层:
@NSCopying var floor: CLFloor? { get }
https://stackoverflow.com/questions/60616649
复制