diff --git a/examples/Scripts/Chain.html b/examples/Scripts/Chain.html index 30b5f38f..eb1d8b1e 100644 --- a/examples/Scripts/Chain.html +++ b/examples/Scripts/Chain.html @@ -26,8 +26,8 @@ for (var i = 0; i < size - 1; i++) { var nextSegment = segments[i + 1]; var position = path.segments[i].point; - var angle = (position - nextSegment.point).angle; - var vector = new Point({ angle: angle, length: 35 }); + var vector = position - nextSegment.point; + vector.length = 35; nextSegment.point = position - vector; } path.smooth(); @@ -47,4 +47,4 @@
-