Is it possible to draw a line between two objects placed based on location in ar.js

Viewed 27

I am using ar.js to show some object on camera, now I need to draw a line between two objects placed based on location. I used a frame for placing objects. Is there any possible solution??

1 Answers

Have you tried the Line Component?

You can create an entity, add a line component and pass in the points to the component:

<a-entity line="start: 0, 1, 0; end: 2 0 -5; color: red"
          line__2="start: -2, 4, 5; end: 0 4 -3; color: green"></a-entity>
Related