create a basketball net 2D

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

Hello how are you?, I hope very well.

I’M GOING CRAZY.

I’ve been trying to make a 2D net for my basketball hoop for days with many failed attempts.

Tried with skeletons, bones, 2D softbody(youtube tutorial), ragdoll style bodies and all failed attempts

I’m new to Godot engine and I don’t have much knowledge yet.

Could you give me an idea how to do it?

I leave attached the net that I would like to recreate, but really as it is, I wanted to do it, but it can be done.

https://i.ibb.co/xGFB3w0/Path.png

What kind of net do you want to make? use “Sprite sheet” or
“Search” = “Rigidbody rope”

ramazan | 2022-02-20 09:14

:bust_in_silhouette: Reply From: Merlin1846

I have an idea. Have 4 points. The 1 and 3 are the top left and top right corners of the net. The 2 and 4 are the bottom corners. Have 2 RigidBody2D polygons going from top left to bottom left and top right to bottom right. Then have a mesh texture that has its four corners attached to the corners. Make sure that the RigidBody2Ds are attached to the top left and right corners respectively with PinJoints and are allowed to freely rotate. Then have the two RigidBody2Ds be attached by their bottom corners to each other with a SpringJoint. Set the 2 and 4 (bottom) corners to be the position of the bottom end of the RigidBody2Ds. That might work.