Hi everyone. I’m studying psychology and my professor and I are working on an experiment about aggression and cognitive control. We do already completed the experiment on the superlab. However we wanted to do this task on the VR. So I need some help. Is there any assets exists like cognitive control tasks we can use and how can I measure reaction time (with mouse click) on VR? (Any help will be refferenced in our study)
Without Googling it, I don’t know what a cognitive control task is, so can’t help you on that one unless you want to explain it.
Reaction time: Would it be enough to have some colored square floating in front of the player that changes from red to green? When it turns green you click the mouse and it shows you the reaction time?
If so, then yes, this should be trivial. You could have the square stay red for a random time, then either start a stopwatch or effectively make your own simple one using the Time class:
The instant it turns green, you could call this:
Then when the mouse button has been clicked, call it again. Subtract the two values and there’s your reaction time. Not sure how accurate you need it, but I suspect this is probably good to around 1ms. If you need better precision than that, it’s possible, but will take some work.