Finally got FPS type camera to work properly