Export camera path (first person controller) in x,y coordinates in a file

Do anyone know if it is possible to Export camera path (first person controller) in x,y coordinates in a file. I am doing a project and I need the coordinates for ploting the data in excel later, is this possbile? I hope someone can help me because I’m tried but nothing works do anyone know any script or settings?

Thanks!

you means just how get position ? or how write to file?

Yes this is possible, you need to sample in fixed time steps the position of your first person controller and write these into a file.

FixedUpdate can be the first location you may want to look, later you can refine it by a granularity settings and use invokeRepeating to call the method which should sample the position.

To write to files, have a look into this:

http://msdn.microsoft.com/de-de/library/8bh11f1k.aspx