浏览代码

fix Curve3.continue() : can start from any point in space now

jbousquie 10 年之前
父节点
当前提交
3588a16dc7
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Babylon/Math/babylon.math.ts

+ 1 - 1
Babylon/Math/babylon.math.ts

@@ -3428,7 +3428,7 @@
             var continuedPoints = this._points.slice();
             var curvePoints = curve.getPoints();
             for (var i = 1; i < curvePoints.length; i++) {
-                continuedPoints.push(curvePoints[i].add(lastPoint));
+                continuedPoints.push(curvePoints[i].subtract(curvePoints[0]).add(lastPoint));
             }
             return new Curve3(continuedPoints);
         }