0
0
Fork 0
mirror of https://github.com/liabru/matter-js.git synced 2025-01-14 16:28:42 -05:00

fixed Examples.compound constraint offset

This commit is contained in:
liabru 2017-05-03 21:34:03 +01:00
parent 9d2f0ffb5b
commit e6babf04a8

View file

@ -23,7 +23,6 @@ Example.compound = function() {
width: Math.min(document.documentElement.clientWidth, 800),
height: Math.min(document.documentElement.clientHeight, 600),
showAxes: true,
showPositions: true,
showConvexHulls: true
}
});
@ -61,7 +60,7 @@ Example.compound = function() {
var constraint = Constraint.create({
pointA: { x: 400, y: 100 },
bodyB: compoundBodyB,
pointB: { x: 0, y: -50 }
pointB: { x: 0, y: 0 }
});
World.add(world, [