So I’m trying to program a new version of an experiment where people will observe an object (a picture of a box) moving in one direction (from left to right) behind an occluder at different speeds. The tricky thing is setting the different speeds of the movement.
I have already collected data from participants who moved the object, and would like to use their data (the movement of the box on x axis + time stamp) to set the different speeds of the movement that participants will see in my new experiment. So basically I would like to use the movement parameters from a previous participant (two movement parameters: movement on x axis and time) to create stimuli showing movements at different speeds. I suppose that I could create a loop that goes through every value of x-axis and time from the data I collected and use it to update the location of the box in every frame? Or maybe there’s a better way of doing this?