How do I disable scaling of the texture at sharp turns on Line2D

Godot Version

Godot 4.2.2

Question

I am switching to using Line2Ds for this level editor I am making, so the platforms can have textures.
The issue is that it kind of curves at sharp angles and it looks really bad when the points aren’t connected.

How it looks currently

How I want the sharp turns to look
Screenshot 2024-07-31 at 1.54.47 PM

I think you need to smooth it out by adding more points. Maybe you can figure out an algorithm that if an angle is too sharp, automatically adds a point before and a point after with some sort of bezier interpolation.

The more points you add, the smoother it will become.

I got it to work! :smile:

I didn’t want the line to curve, so I simply just duplicated the join points

Result

Also I’m surprised that you extracted the line texture from my image

I’m a resourceful guy :slight_smile:
I’m glad you fixed it. Good luck!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.