Browse Source

Fix typo getNormalVector() -> getTangent()

Joshua Koo 11 years ago
parent
commit
fab25f9fea
1 changed files with 1 additions and 1 deletions
  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;