Explorar el Código

fix camera rotation direction.

Lucas Stadler %!s(int64=12) %!d(string=hace) años
padre
commit
1398cc48ae
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      js/pixl/public/trixl.html

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

114
			var front = trixl.camera.front();
114
			var front = trixl.camera.front();
115
			var strafe = trixl.camera.strafe(front);
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
		trixl.camera.rotateAround = function(angle, axis) {
120
		trixl.camera.rotateAround = function(angle, axis) {
121
			var front = trixl.camera.front();
121
			var front = trixl.camera.front();