瀏覽代碼

Fix typo getNormalVector() -> getTangent()

Joshua Koo 11 年之前
父節點
當前提交
fab25f9fea
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/extras/core/CurvePath.js

+ 1 - 1
src/extras/core/CurvePath.js

@@ -312,7 +312,7 @@ THREE.CurvePath.prototype.getWrapPoints = function ( oldPts, path ) {
 		// check for out of bounds?
 
 		var pathPt = path.getPoint( xNorm );
-		var normal = path.getNormalVector( xNorm );
+		var normal = path.getTangent( xNorm );
 		normal.set( -normal.y, normal.x ).multiplyScalar( oldY );
 
 		p.x = pathPt.x + normal.x;