浏览代码

fix camera rotation direction.

Lucas Stadler 12 年之前
父节点
当前提交
1398cc48ae
共有 1 个文件被更改,包括 2 次插入2 次删除
  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();