Skip to content

Commit

Permalink
Fix example dependencies for develop
Browse files Browse the repository at this point in the history
  • Loading branch information
milcktoast committed Jul 7, 2016
1 parent 22a2249 commit 1fa0a4b
Show file tree
Hide file tree
Showing 10 changed files with 1,297 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/polyhedron/icosahedron.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,17 +56,17 @@

// Reference to links for visualization
var linkIndices = edges.concat(struts)

(function createLinks() {
function createLinks() {
var a, b, dist
for (var i = 0, il = linkIndices.length / 2; i < il; i ++) {
a = linkIndices[i * 2]
b = linkIndices[i * 2 + 1]
dist = system.getDistance(a, b)
system.addConstraint(PTCL.DistanceConstraint.create(dist, a, b))
}
}())
}

createLinks()
system.addConstraint(bounds)
system.addForce(gravityForce)

Expand Down
Loading

0 comments on commit 1fa0a4b

Please sign in to comment.