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

Updates the x and y coordinates by moving it in the opposite x and y coherent directions
Updates the x and y coordinates by moving it in the opposite x and y coherent directions
function oppositeDirectionUpdate(dot) {
			dot.x -= dot.vx;
			dot.y -= dot.vy;
			dot.latestXMove = -dot.vx;
			dot.latestYMove = -dot.vy;
			return dot;
		}
function oppositeDirectionUpdate ( 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 opposite x and y coherent directions
Updates the x and y coordinates by moving it in the opposite x and y coherent directions