Reputation: 9
I want to place an object in ARKit using latitude and longitude. Currently I can place the object using SCNVector3 (x, y, z)
.
How can I place models using latitude and longitude?
Upvotes: 1
Views: 940
Reputation: 58553
You can definitely place models using latitude and longitude with ARGeoAnchor:
ARGeoAnchor(coordinate: CLLocationCoordinate2D, altitude: CLLocationDistance?)
Look at this post telling about ARGeoTrackingConfig
's implementation.
Upvotes: 1