I am trying to make a class that draws lines with each mouse click until you right click. It will draw the first segment and then stops after that. Not quite sure why. I’m still trying to get my head wrapped around babylonjs. i created a playground below.
I don’t know the problem but you might try putting a breakpoint at the top of GenerateLines and step through line by line, inspecting every variable to see where the problem is
1 Like
You can not update a line with more points it has been created with. You need to dispose and allocate a new one https://playground.babylonjs.com/#6A70QH#2
Thank you. Now I understand. And its working properly now