Explorar o código

Fix typo getNormalVector() -> getTangent()

Joshua Koo %!s(int64=11) %!d(string=hai) anos
pai
achega
fab25f9fea
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;