Building a seesaw

Hey Folks :slight_smile:

I’d like to build a seesaw for a puzzle … but unfortunately I havn’t found a way jet. I tried a character joint, just a ridgidbody, a hinged joint and a fixed joint… But somehow the object I used started to behave rather chaotic as soon as I placed another ridgidbody on top of them …

Can you help me?

Cheers!

Dawnreaver

The stock hinged joint is what you are looking for. However, it acted very freaky just placing it. Mostly because you have to define the direction to start. I would also take the time and define the limits. and

The joint (like all others) has a disconnect torque and force value, You can play with them if you are going to use them.

Lastly, all the joints have a little funk in them where they give just a little if hit akwardly.

some code might help

var otherBody : Transform;
var hingePoint : Transform;

var hinge=transform.gameObject.AddComponent(HingeJoint);
hinge.axis = Vector3.right;
hinge.anchor = hingePoint.position;
hinge.limits.min = -20;
hinge.limits.minBounce = 0;
hinge.limits.max = 20;
hinge.limits.maxBounce = 0;
hinge.connectedBody = otherBody.rigidbody;

Thank you BigMisterB :slight_smile: I’m trying it out as soon as I can :slight_smile:

Awe damn … I still can’t get it to work T_T