updating the anim trajectory