Tracking avatar motion