Hello everyone,
I have a few questions about the PG below:
https://www.babylonjs-playground.com/#1TI7KR#3
(original post here).
-
How would one start with a set number of spheres (instead of zero in the PG), then add spheres based on the interval? For instance, start with 10, then add 1 sphere every 200 ms until the max number is reached (100).
-
To give meshes unique names, I would use the code below. However, I can’t seem to combine this code with the interval code in the PG so that all clones receive a unique name (“clone” + i). For example, the first 10 would be clone0, clone1,…, then each new clone would also have a unique name–clone101, clone102,…
for (var i = 0; i < totalClones; i++) { let clone = sphereBase.clone("clone" + i); };
Any help or suggestions would be greatly appreciated!