Line2D doesn't shrink when RayCast2D collides

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By synthels

Here’s what I’m trying to do
And here’s what comes out

This is my Raycast2D code (Stripped all unimportant parts):

Can anyone help me?

:bust_in_silhouette: Reply From: kidscancode

Setting the index like that doesn’t alter the line’s points. You need to use set_point_position() here.