jspsych/plugins/jspsych-rdk.js
//Updates the x and y coordinates by moving it in the x and y coherent directions

Updates the x and y coordinates by moving it in the x and y coherent directions
Updates the x and y coordinates by moving it in the x and y coherent directions
function constantDirectionUpdate(dot) {
			dot.x += dot.vx;
			dot.y += dot.vy;
			dot.latestXMove = dot.vx;
			dot.latestYMove = dot.vy;
			return dot;
		}
function constantDirectionUpdate ( dot ) { dot . x += dot . vx ; dot . y += dot . vy ; dot . latestXMove = dot . vx ; dot . latestYMove = dot . vy ; return dot ; }
Updates the x and y coordinates by moving it in the x and y coherent directions
Updates the x and y coordinates by moving it in the x and y coherent directions