So I am trying to simulate a scale (See image). The way I do it is by having three game object: One for each side of the scale and one for the horizontal bar connecting them (The support does not exist as far as physics care). The bar has Rigidbody2d with only rotation allowed + a collider and the hands of the scale have colliders and rigidbody with only y movement allowed + distance joints to the sides of the bar. I made sure to set them EXACTLY the same.
When I put a weight on the left side it works great, scale goes down, then I remove it, balanced again, when I put one on the right though the joint breaks.enter image description hereSettings for Rigid2d and distanceJoint2d on the right hand of the scale [Scale (for illustration)]
I would almost believe this is a problem on Unity's end but I would like to be sure, and obvioulsy to know what I am doing wrong in the case I am
Thanks in advance
I was able to get this working using the following configuration:
Note the use of hinge joints as opposed to distance joints. The full configurations are below, but the basic idea is as follows
The ScalePlates are configured like so:
And here is the ScaleBar
ScaleAnchor