Hello, first time asking something.
I am trying to spawn some kind of hand, like a grapple, between my character and where I clicked on the screen. On event, I create an instance of a Rigidbody with a CollisionShape2D that has a segment shape. I put the A variable of the segment on the character and the B variable on the mouse position.
Thing is, I don't understand how I can make my sprite fit this shape that is not know beforehand. It is hard to tell if my script is working when I can't see the segment.
Yes, I am very new to the engine. Maybe it's a simple problem and I'll be very grateful for an answer!