It can be done, simplest version is quite easy. Make transformation array, and add player pawn transform there each tick.
But i noticed words “wider” and “research”, so probably you do not want that very simple way.
You probably want 2 other things also:
- precise timing, ie. exactly same intervals between data dump.
- storing data in text log file.
For precise timing you should use timer (however i am not sure if they as accurate as tick is, or they have independent timing).
From timer event you should call function that stores transformation of pawn. You can use logs here, just print that value, then parse it with external script. But this is messy solution.
Better go watch C++ tutorial and write very simple function that saves data to text file. C++ code is on difficulty scale around “hello world” my first C++ code.
PS. be aware that tick frequency heavily depends on FPS, so test whole thing on slower PC. Also physics depends on FPS, so replaying game with physics may not work well.