I think I didn’t understand what I should multiply by -1 (normal bi levels, are a vector3 array, what should I multiply?.
And I didn’t understand what you call the checkpoint.
I feel stupid sometimes. Your sentence seems simple, but once you look at the code, it’s not as simple as doing a 2x2=4 multiplication;
I understood that this was not good. The ribbon created is not complete.
I did this which works. I did as I said by creating two ribbons (one on each side of the line) Then merging them to make one.
The main line is found in the middle.
I don’t know if this is the right way to do it, but it works.
First, please carefully read or re-read the Babylon js docs and examples on creating ribbons. You need to build an array of shapes (i.e. point arrays), which the CreateRibbon function will triangulate for you. In this case, each shape is three points:
Thanks @lowclouds. I understood my mistake. I wasn’t far from the result. Now everything is perfect. I have other challenges awaiting me now, kike texturing this path at the same time as it is generated.