2D joints, connected body friction

Hi, I want to make a rigidbody drag and drop mechanics using physics so I chose joints, but it is just broken, I cant do anything with this stupid friction behavior… it seems to stick to surfaces under the pressure of the motion vector force, any ideas how to solve it guys?
j2d

You should use a TargetJoint2D for that by continually setting the target position rather than a FixedJoint2D.

I used this a lot on the PhysicsExamples2D repo. Here’s an example with links: https://youtu.be/4NSKN3L0fvE?si=N_P1LgzcaEcSM7P_

What you’re doing here is clearly breaking the constraint which is why it’s stretching. Hopefully you’re not setting the Transform to achieve that.

Hope this helps.

Hi, thanks for reply, looks interesting, but there is something wrong. seems like prefabs are broken, any ideas?

Actually, it just seems like you didn’t check-out the repo correctly. Look at your image, both the prefab and animation folders are empty.

If you were to look at the repo, you’d see them there: PhysicsExamples2D/Assets/Prefabs/PhysicsSprites at master · Unity-Technologies/PhysicsExamples2D · GitHub

1 Like

Yes, you are right… I pressed ‘Download Zip’ on github page, but archive doesnt contain prefabs and animations, git clone works fine, thank you!

1 Like

I just did the same and they are contained within the ZIP as you’d expect from any GitHub repo. The ZIP contains the whole repo. Sounds like it didn’t unzip correctly.

Anyway, seems like you’ve got it now.

1 Like