Simran Rout
Simran Rout

Reputation: 9

ARKit – Placing objects using latitude and longitude

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

Answers (1)

Andy Jazz
Andy Jazz

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

Related Questions