Dynamic simulation as a tool for three-dimensional animation