tubeGeometry line animation

스크린샷 2023-12-01 150948

I use LineBasicMaterial and
via tubeGeometry
The work of drawing a trajectory is in progress.

However, there are cases where it is rendered strangely as shown in the image above.
I’m asking to get advice on what the problem is and how to solve it.

Without the code its kinda hard to tell. Right now it looks like there is something wrong with your path coordinates.