Pārlūkot izejas kodu

fix camera rotation direction.

Lucas Stadler 12 gadi atpakaļ
vecāks
revīzija
1398cc48ae
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  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();