mirror of
https://github.com/liabru/matter-js.git
synced 2024-11-26 09:49:20 -05:00
improve slingshot example constraint
This commit is contained in:
parent
1b4e288488
commit
c6a1a6d54d
1 changed files with 3 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue