Skip to content

Commit 5cae4ee

Browse files
committed
adding 1 more link to spiderweb for uniformity
1 parent cf2783e commit 5cae4ee

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

examples/04-spiderweb.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,9 @@
144144
composite.constraints.push(new DistanceConstraint(composite.particles[i], composite.particles[n-1], stiffness));
145145
}
146146

147+
148+
composite.constraints.push(new DistanceConstraint(composite.particles[0], composite.particles[segments-1], stiffness));
149+
147150
for (c in composite.constraints)
148151
composite.constraints[c].distance *= tensor;
149152

0 commit comments

Comments
 (0)