Godot Version
4.6.stable
Question
There’s something I’m making where a Line2d is perfect except that like the node says, it doesn’t work well with sharp angles. I want to have only 90 degree turns. What’s the best solution or alternative?
4.6.stable
There’s something I’m making where a Line2d is perfect except that like the node says, it doesn’t work well with sharp angles. I want to have only 90 degree turns. What’s the best solution or alternative?
In what way it doesn’t work well with sharp angles?
This says: “Warning: Certain configurations may be impossible to draw nicely, such as very sharp angles. In these situations, the node uses fallback drawing logic to look decent.“
And sometimes when I have a point from A to B. Even though A and B have the same Y value, if C is a 90 degree angle from B, then B looks slightly higher than A.
Can you post the exact use case?
Do you need the properties of a Line2D node?
Will simply drawing the lines be enough?
If so, then look into the various drawing commands such as draw_line.
I’m using the Line2D to be the water (blue line) which should follow the white paths.
But it creates weird glitch looks. I know that the line’s points are put in correct, it’s just that a Line2D doesn’t like sharp angles.
Apparently I was wrong when I said “I know that the line’s points are put in correct.“ I found that if I create a new point right before the line turns, then it fixes the problems. Thanks for all your help!