Pendulum

 

This example uses the new addObject methods.  Notice also the use of a circular constraint.

Drag the pendulum bob after you hit reset to start the animation at a different initial angle.