将对象3d放置在海拔位置目标位置中

问题描述 投票:0回答:1

如何用ARKitCoreLocation在地板上设置节点(3d对象)?

我要在我的距离小于20米时。我的物体在地面上使用高度。我使用CoreLocation和SceneKit。

你有什么想法吗?

谢谢。

swift augmented-reality scenekit core-location arkit
1个回答
0
投票

CoreLocation框架为您提供了一个altitude实例属性,以米为单位:

var altitude: CLLocationDistance { get }

也可以使用floor属性,该属性是用户所在建筑物的逻辑楼层:

@NSCopying var floor: CLFloor? { get }
© www.soinside.com 2019 - 2024. All rights reserved.