This simulation demonstrates the relation between the stability of an object and the position of its centre of gravity (c.g.).
Rotate the object about point O by dragging it with mouse and
observe the subsequent motion of the object when it is being released.
Change the shape of the object and observe how its stability is affected.