Arkit demo to measure the distance between 2 points in world coordinates ArkitMeasure provides the code to measure the distance between 2 points in Arkit.
Below are the major functions covered in this topic:
- func renderer(_ renderer: SCNSceneRenderer, updateAtTime time: TimeInterval) - Delegate called by Arkit at specific intervals to allow us to calculate the real world coordinates as user moves the device and to handle UI.
- func drawLine(from: SCNVector3, to: SCNVector3) - Function to draw line using SCNGeometrySource and SCNGeometryElement.
Code explanation soon will be provided in https://www.machinethinks.com
Below is the screenshot from the app.