Skip to content

Arkit demo to measure the distance between 2 points in world coordinates

Notifications You must be signed in to change notification settings

sriscode/ArkitMeasure

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ArkitMeasure

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:

  1. 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.
  2. 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.

alt text

About

Arkit demo to measure the distance between 2 points in world coordinates

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages