Box2D with Mouse and Revolute Joint and HTML5 Canvas
Black dot is the position of the object, the yellow dot is the center of mass.