The WeldJoint glues two bodies together keeping a referenceAngle. You need to specify local anchor points where the bodies are attached and the relative body angle (referenceAngle property). The position of the anchor points is important for computing the reaction torque.
The damping ratio. 0 = no damping, 1 = critical damping. The default value is 0.
The mass-spring-damper frequency in Hertz. The default value is 0.
Typically the frequency should be less than a half the frequency of the PhysicsWorld::timeStep. So if you are using a 60Hz time step, the frequency of the distance joint should be less than 30Hz. The reason is related to the Nyquist frequency.
localAnchorA : point
localAnchorB : point
The bodyB angle minus bodyA angle in the reference state in degrees. The default is 0.
Note: Changing the referenceAngle at runtime has no effect. It is only read at initialization time and cannot be changed later.
Voted #1 for: