mirror of
https://github.com/liabru/matter-js.git
synced 2025-01-21 17:14:38 -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({
|
elastic = Constraint.create({
|
||||||
pointA: anchor,
|
pointA: anchor,
|
||||||
bodyB: rock,
|
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) {
|
var pyramid = Composites.pyramid(500, 300, 9, 10, 0, 0, function(x, y) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue