浏览代码

oops - fixed but in setRotX

astrodud 14 年之前
父节点
当前提交
d8f6d06edf
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/core/Matrix4.js

+ 1 - 1
src/core/Matrix4.js

@@ -306,7 +306,7 @@ THREE.Matrix4.prototype = {
 
 	setRotX: function( theta ) {
                  var c = Math.cos( theta ), s = Math.sin( theta );
-		 this.set( 1, 0, 0, 0, 0, c, -s, 0, 0, c, s, 0, 0, 0, 0, 1 );
+		 this.set( 1, 0, 0, 0, 0, c, -s, 0, 0, s, c, 0, 0, 0, 0, 1 );
 		 return this;
         },