I’m trying to create some lines using Mesh.CreateLinesSystems. However because lines’ quantity I want to use a loop.
How can I store each line in the component of an array?
I attach a playground where I try to show what I want to do.
Here is a working example of a Line System:
Lines System Examples | Babylon.js Playground (babylonjs.com)
and here the documentation: Creating A Line System | Babylon.js Documentation (babylonjs.com)
I’ve already seen the documentation and the examples that you send. My problem is related with the definition of the lines that you have to use later.
I don’t understand your problem. Can you modify the working example in a way which reflects what you try to gain?
My problem is that instead of writing each point that create a line I want to use a loop to create that lines.
If I do it in the working example i will have the same problem.
Look lines 25 to 27, in that lines I trying to create a line for each value of i in the loop.
But I don’t know how to store the lines in different componet of an array so later the Mesh.CreateLinesSystem recognize mylines as a list of lines.
I’ve implemented the same, but the answer is consistent with @CodingCrusader.
Unfortunately, at the time. I made PG (I saw it late ) PG
Thanks you for your time