0
0
Fork 0
mirror of https://github.com/liabru/matter-js.git synced 2024-12-25 13:39:06 -05:00

demo tweaks

This commit is contained in:
liabru 2015-05-03 18:03:26 +01:00
parent 22445c7717
commit d55c7003e9

View file

@ -214,7 +214,6 @@
var svgs = [ var svgs = [
'iconmonstr-check-mark-8-icon', 'iconmonstr-check-mark-8-icon',
'iconmonstr-direction-4-icon',
'iconmonstr-paperclip-2-icon', 'iconmonstr-paperclip-2-icon',
'iconmonstr-puzzle-icon', 'iconmonstr-puzzle-icon',
'iconmonstr-user-icon' 'iconmonstr-user-icon'
@ -995,7 +994,7 @@
Demo.reset(); Demo.reset();
var stack = Composites.stack(100, 100, 10, 5, 0, 0, function(x, y, column, row) { var stack = Composites.stack(100, 300, 10, 5, 0, 0, function(x, y, column, row) {
return Bodies.rectangle(x, y, 40, 40); return Bodies.rectangle(x, y, 40, 40);
}); });
@ -1023,12 +1022,12 @@
yy = 600 - 21 - 40 * rows; yy = 600 - 21 - 40 * rows;
var stack = Composites.stack(400, yy, 5, rows, 0, 0, function(x, y, column, row) { var stack = Composites.stack(400, yy, 5, rows, 0, 0, function(x, y, column, row) {
return Bodies.rectangle(x, y, 40, 40, { friction: 0.9, restitution: 0.1 }); return Bodies.rectangle(x, y, 40, 40);
}); });
World.add(_world, stack); World.add(_world, stack);
var ball = Bodies.circle(100, 400, 50, { density: 0.07, frictionAir: 0.001}); var ball = Bodies.circle(100, 400, 50, { density: 0.04, frictionAir: 0.005});
World.add(_world, ball); World.add(_world, ball);
World.add(_world, Constraint.create({ World.add(_world, Constraint.create({
@ -1095,7 +1094,7 @@
Demo.reset(); Demo.reset();
var stack = Composites.pyramid(100, 100, 15, 10, 0, 0, function(x, y, column, row) { var stack = Composites.pyramid(100, 258, 15, 10, 0, 0, function(x, y, column, row) {
return Bodies.rectangle(x, y, 40, 40); return Bodies.rectangle(x, y, 40, 40);
}); });