AndrewHartAR / ARKit-CoreLocation

Combines the high accuracy of AR with the scale of GPS data.
MIT License
5.47k stars 739 forks source link

How to set altitude value #269

Open SatishSR opened 4 years ago

SatishSR commented 4 years ago

How to set altitude value so that i can move line lower than usual?

michaelpaquette commented 4 years ago

Good question - we could use that feature as well ? Is there a way?

lsamaria commented 4 years ago

@SatishSR @michaelpaquette

any updates on this? I also need this feature

wolfej94 commented 1 year ago

Altitude is a property on CLLocation which can be used to construction a LocationAnnotationNode.

let location = CLLocation(coordinate: .init(latitude: Double(), longitude: Double()), altitude: Double(), horizontalAccuracy: Double(), verticalAccuracy: Double(), timestamp: Date())`

let node = LocationAnnotationNode(location: , view: UIView())
sceneView.addLocationNodeWithConfirmedLocation(locationNode: node)