Hello guys
So i'm making a game in wich I have a line with an end atatched to a square and as I move the square, that end of the line should move with it. And I did that using the pinJoint.
Ok, but now I need this line to scale up and down as I pull it or get closer to it, like a rubber band. How can I do that?
As you can tell, I'm new to this whole programming and making games thing, I always try not to post on forums 'cause I wanna figure it out by myself learning from mistakes, or just googleing it... And I've tried, but I just don't know what I'm looking for, exactly. So can you guys help me?
I've thought of getting global position of both squares, subtracting it and then setting that result as the scale of the line, but i guess that's just wrong haha.
Sorry if there's already a question about it.
Thank you all.
