Camera switch between first person and top down but movement is not correct.

Exactly, that is want i want to achive