Commits

Roi Atalla committed a2635ed

Fixed bug in Examples 7.1 and 7.2 where the keys "E" and "Q" were mapped to the X axis instead of the Y axis. Thanks to Oebele for discovering this bug.

Comments (0)

Files changed (2)

src/com/ra4king/opengl/arcsynthesis/gl33/chapter7/example1/Example7_1.java

 			camTarget.sub(speed1, 0, 0);
 		
 		if(Keyboard.isKeyDown(Keyboard.KEY_E))
-			camTarget.sub(speed1, 0, 0);
+			camTarget.sub(0, speed1, 0);
 		if(Keyboard.isKeyDown(Keyboard.KEY_Q))
-			camTarget.add(speed1, 0, 0);
+			camTarget.add(0, speed1, 0);
 		
 		if(Keyboard.isKeyDown(Keyboard.KEY_I))
 			sphereCamRelPos.sub(0, speed2, 0);

src/com/ra4king/opengl/arcsynthesis/gl33/chapter7/example2/Example7_2.java

 			camTarget.sub(speed1, 0, 0);
 		
 		if(Keyboard.isKeyDown(Keyboard.KEY_E))
-			camTarget.sub(speed1, 0, 0);
+			camTarget.sub(0, speed1, 0);
 		if(Keyboard.isKeyDown(Keyboard.KEY_Q))
-			camTarget.add(speed1, 0, 0);
+			camTarget.add(0, speed1, 0);
 		
 		if(Keyboard.isKeyDown(Keyboard.KEY_I))
 			sphereCamRelPos.sub(0, speed2, 0);