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:
parent
9d2f0ffb5b
commit
e6babf04a8
1 changed files with 1 additions and 2 deletions
|
@ -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, [
|
||||
|
|
Loading…
Reference in a new issue