Skip to content

Commit

Permalink
improve slingshot example constraint
Browse files Browse the repository at this point in the history
  • Loading branch information
liabru committed Aug 6, 2022
1 parent 1b4e288 commit c6a1a6d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion examples/slingshot.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ Example.slingshot = function() {
elastic = Constraint.create({
pointA: anchor,
bodyB: rock,
stiffness: 0.015
length: 0.01,
damping: 0.01,
stiffness: 0.05
});

var pyramid = Composites.pyramid(500, 300, 9, 10, 0, 0, function(x, y) {
Expand Down

0 comments on commit c6a1a6d

Please sign in to comment.