Browse Source

Fix for the removed `getNormalVector()` in CurvePath.getWrapPoints

- See #4105
Joshua Koo 11 years ago
parent
commit
30b8393089
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/extras/core/CurvePath.js

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

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