Flock example: smooth segments.

This commit is contained in:
Jonathan Puckey 2011-05-04 18:36:44 +01:00
parent 13dd088043
commit 24e817fd01

View file

@ -77,6 +77,7 @@
segment.point += rotated; segment.point += rotated;
lastVector = vector; lastVector = vector;
} }
this.path.smooth();
this.head.position = this.loc; this.head.position = this.loc;
var vector = this.loc - this.lastLoc; var vector = this.loc - this.lastLoc;
var rot = vector.angle; var rot = vector.angle;