Problem updating points in GreasedLineMesh

I thought it would be a simple problem, but I can’t seem to find a way to solve it.

When updating the points of an instanced CreateGreasedLine, the existing points are not removed but instead accumulated. Is there a way to remove them from the instance structure?

https://playground.babylonjs.com/#XH3IEK#1

When discarding existing values and regenerating them, a delay causes a flickering effect. I’m not sure if this is the correct method or if the issue is due to excessively fast regeneration.

Use setPoints().

CreateGreasedLine with instance specified is documented to add points.

3 Likes

My blindness was cured after seeing your answer.:star_struck:

3 Likes