Joints and creating a see-saw

i am trying to create a see-saw.

but i don't understand how to correctly use joints to attach the board to the base.

The base is simply a Quad rotated 45

Maybe this would help

RotationalJointAxis joint = physicsSpace.createJoint().createRotationalAxis();


However I have on experience with joints yet.

ah, ok this works:

there is also a good joint example in physics Lesson7.


       joint = space.createJoint();
       // we want free rotation around the Z Axis
            RotationalJointAxis axisZ = joint.createRotationalAxis();
            axisZ.setDirection(Vector3f.UNIT_Z);
       // make the joint unbreakable
       joint.setBreakingLinearForce(Float.POSITIVE_INFINITY);
       joint.setBreakingTorque(Float.POSITIVE_INFINITY);
       joint.attach(dynamicBoard);
       // set the anchor of the joint to the location of the seesaw
       joint.setAnchor(dynamicBoard.getWorldTranslation());