refine character controller to locomotion controller.