How to implement a motor/hinge joint in 2D?

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

I want to connect two RigidBody2Ds together with a joint and allow the player to control that joint. The joint would be “stiff” and try not to pivot when not being controlled (kind of like QWOP).

It looks like HingeJoint is close to what I want, but it is only in 3D. What would be a good way to implement this in 2D?

Did you ever figure out a way to implement something like that in 2D? I am trying to find a way to do it myself.

neweichgames | 2021-05-19 23:38

Nope! Let me know if you do. Good luck!

Rose | 2021-05-20 04:00

:bust_in_silhouette: Reply From: litelo

What you are looking for is a PinJoint2D. You can change the “softness” param to control the level of pivoting.