0
0
Fork 0
mirror of https://github.com/liabru/matter-js.git synced 2024-11-27 09:50:52 -05:00

improve Composite.car

This commit is contained in:
liabru 2015-12-28 18:50:26 +00:00
parent 6f892502c2
commit 5ff218234a

View file

@ -259,10 +259,7 @@ var Bodies = require('./Bodies');
collisionFilter: {
group: group
},
restitution: 0.5,
friction: 0.9,
frictionStatic: 10,
slop: 0.5,
friction: 0.8,
density: 0.01
});
@ -270,10 +267,7 @@ var Bodies = require('./Bodies');
collisionFilter: {
group: group
},
restitution: 0.5,
friction: 0.9,
frictionStatic: 10,
slop: 0.5,
friction: 0.8,
density: 0.01
});
@ -281,14 +275,14 @@ var Bodies = require('./Bodies');
bodyA: body,
pointA: { x: wheelAOffset, y: wheelYOffset },
bodyB: wheelA,
stiffness: 0.5
stiffness: 0.2
});
var axelB = Constraint.create({
bodyA: body,
pointA: { x: wheelBOffset, y: wheelYOffset },
bodyB: wheelB,
stiffness: 0.5
stiffness: 0.2
});
Composite.addBody(car, body);