Modelling bipedal locomotion using wavelets for figure animation