Free movement as when the camera is free

hello, i need help with fly movement, i need move the character as the editor when it no possess character, i uses the position vector and modify is coordenad the movement but this is wrong, the idea is advance depends the camera view.