This small PR increases the reusability of the ARCamView class from the demo so that it now contains a user-defined array of objects, which can be added to. Each object can be added with a position and scale, and the whole array is made visible when tracking begins or invisible when tracking is lost.
The icosahedron is moved to the code inside camera.html.
Tested on desktop and on a mobile device and works as expected.
This small PR increases the reusability of the
ARCamView
class from the demo so that it now contains a user-defined array of objects, which can be added to. Each object can be added with a position and scale, and the whole array is made visible when tracking begins or invisible when tracking is lost.The icosahedron is moved to the code inside
camera.html
.Tested on desktop and on a mobile device and works as expected.