Browse Source

LatheGeometry: Fixed generated side.

Mr.doob 10 năm trước cách đây
mục cha
commit
38c36e910a
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      src/extras/geometries/LatheGeometry.js

+ 2 - 2
src/extras/geometries/LatheGeometry.js

@@ -44,9 +44,9 @@ THREE.LatheGeometry = function ( points, segments, phiStart, phiLength ) {
 
 			var vertex = new THREE.Vector3();
 
-			vertex.x = point.x * cos;
+			vertex.x = point.x * sin;
 			vertex.y = point.y;
-			vertex.z = point.x * sin;
+			vertex.z = point.x * cos;
 
 			this.vertices.push( vertex );