Download

Controlling an actors position given coordinates and time in a csv

Hi,

What would be the best way to go about controlling an actors position in the game using a .csv?

It will look like


t, x, y, z
0, 0, 0, 20
.5, 1, .5, 25
1, 2, .5, 30
1.5, 3, .5, 35
etc....

What would be the best way to update the actors location given the time intervals in the file since calling the Tick function would update it too frequently? Also in the second link, the user shows how to parse the data but for a set number of rows and columns which is something I’d like to stay away from since my data sets will be dynamic (as in more variables may get added later on and I don’t want to constantly hard code new ones). Any thoughts? I’ve listed the tutorials that I’ve looked at below

http://www.cplusplus.com/forum/general/17771/