I saw a solution for the path here.
I made the end caps with half spheres.

If anyone is interested in the code, it is in this PR and is going to be merged soon was merged.
I saw a solution for the path here.
I made the end caps with half spheres.

If anyone is interested in the code, it is in this PR and is going to be merged soon was merged.