0
0
Fork 0
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:
liabru 2022-08-06 23:35:15 +01:00
parent 1b4e288488
commit c6a1a6d54d

View file

@ -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) {