From 769b384117a5f2e4b9ef48c9b88850541160f867 Mon Sep 17 00:00:00 2001 From: Ihor Date: Tue, 9 Apr 2019 23:41:45 +0300 Subject: [PATCH] Fix rotation with arrows --- RubixCube/RubixCube.pde | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/RubixCube/RubixCube.pde b/RubixCube/RubixCube.pde index 6813b11..55752c4 100644 --- a/RubixCube/RubixCube.pde +++ b/RubixCube/RubixCube.pde @@ -382,16 +382,16 @@ void keyPressed() { float spinVal = PI/2; switch(keyCode) { case RIGHT: - yRotationKey +=spinVal; + yRotationKeyTarget +=spinVal; break; case LEFT: - yRotationKey -=spinVal; + yRotationKeyTarget -=spinVal; break; case UP: - xRotationKey +=spinVal; + xRotationKeyTarget +=spinVal; break; case DOWN: - xRotationKey -=spinVal; + xRotationKeyTarget -=spinVal; break; } }