Selaa lähdekoodia

fix camera rotation direction.

Lucas Stadler 12 vuotta sitten
vanhempi
commit
1398cc48ae
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2 2
      js/pixl/public/trixl.html

+ 2 - 2
js/pixl/public/trixl.html

@ -114,8 +114,8 @@
114 114
			var front = trixl.camera.front();
115 115
			var strafe = trixl.camera.strafe(front);
116 116
117
			trixl.camera.rotateAround(dx, trixl.camera.up);
118
			trixl.camera.rotateAround(dy, strafe);
117
			trixl.camera.rotateAround(-dx, trixl.camera.up);
118
			trixl.camera.rotateAround(-dy, strafe);
119 119
		}
120 120
		trixl.camera.rotateAround = function(angle, axis) {
121 121
			var front = trixl.camera.front();