Constrained optimization of articulated animal movement in computer animation