mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2024-12-29 09:22:22 -05:00
Flock example: smooth segments.
This commit is contained in:
parent
13dd088043
commit
24e817fd01
1 changed files with 1 additions and 0 deletions
|
@ -77,6 +77,7 @@
|
|||
segment.point += rotated;
|
||||
lastVector = vector;
|
||||
}
|
||||
this.path.smooth();
|
||||
this.head.position = this.loc;
|
||||
var vector = this.loc - this.lastLoc;
|
||||
var rot = vector.angle;
|
||||
|
|
Loading…
Reference in a new issue