Draw straight line

Share on Twitter Share on Facebook Share on LinkedIn

Draw straight line

Description

As you've seen in the Shapes lesson, we can add a number of built in geometry shapes to our scene.

But how do you draw a straight line in ARKit?

If you check out the code sample below, you will be able to see that we can use a long thin cylindar to draw a straight line between two points.


Video


Code


Next Step : Looking at gaze

After you have mastered this you should try Looking at gaze