0
0
Fork 0
mirror of https://github.com/liabru/matter-js.git synced 2024-11-27 09:50:52 -05:00
liabru-matter-js/test/browser/refs/compound/compound-10.json
2016-04-05 23:55:19 +01:00

1753 lines
No EOL
22 KiB
JSON

[
{
"bodies": {
"#": 1
},
"bounds": {
"#": 176
},
"composites": {
"#": 179
},
"constraints": {
"#": 180
},
"gravity": {
"#": 188
},
"id": 119,
"isModified": false,
"label": "World",
"parent": "",
"type": "composite"
},
[
{
"#": 2
},
{
"#": 24
},
{
"#": 46
},
{
"#": 68
},
{
"#": 90
},
{
"#": 118
}
],
{
"angle": 0,
"anglePrev": 0,
"angularSpeed": 0,
"angularVelocity": 0,
"area": 40930.25,
"axes": {
"#": 3
},
"bounds": {
"#": 6
},
"collisionFilter": {
"#": 9
},
"constraintImpulse": {
"#": 10
},
"density": {
"#.": "Number",
"#v": [
"Infinity"
]
},
"force": {
"#": 11
},
"friction": 1,
"frictionAir": 0.01,
"frictionStatic": 0.5,
"id": 0,
"inertia": {
"#.": "Number",
"#v": [
"Infinity"
]
},
"inverseInertia": 0,
"inverseMass": 0,
"isSensor": false,
"isSleeping": false,
"isStatic": true,
"label": "Rectangle Body",
"mass": {
"#.": "Number",
"#v": [
"Infinity"
]
},
"motion": 0,
"parent": null,
"position": {
"#": 12
},
"positionImpulse": {
"#": 13
},
"positionPrev": {
"#": 14
},
"region": {
"#": 15
},
"render": {
"#": 16
},
"restitution": 0,
"sleepCounter": 0,
"sleepThreshold": 60,
"slop": 0.05,
"speed": 0,
"timeScale": 1,
"torque": 0,
"totalContacts": 0,
"type": "body",
"velocity": {
"#": 18
},
"vertices": {
"#": 19
}
},
[
{
"#": 4
},
{
"#": 5
}
],
{
"x": 0,
"y": 1
},
{
"x": -1,
"y": 0
},
{
"max": {
"#": 7
},
"min": {
"#": 8
}
},
{
"x": 805.25,
"y": 20.25
},
{
"x": -5.25,
"y": -30.25
},
{
"category": 1,
"group": 0,
"mask": 4294967295
},
{
"angle": 0,
"x": 0,
"y": 0
},
{
"x": 0,
"y": 0
},
{
"x": 400,
"y": -5
},
{
"x": 0,
"y": 0
},
{
"x": 400,
"y": -5
},
{
"endCol": 16,
"endRow": 0,
"id": "-1,16,-1,0",
"startCol": -1,
"startRow": -1
},
{
"fillStyle": "#eeeeee",
"lineWidth": 1.5,
"opacity": 1,
"sprite": {
"#": 17
},
"strokeStyle": "#bbbbbb",
"visible": true
},
{
"xOffset": 0.5,
"xScale": 1,
"yOffset": 0.5,
"yScale": 1
},
{
"x": 0,
"y": 0
},
[
{
"#": 20
},
{
"#": 21
},
{
"#": 22
},
{
"#": 23
}
],
{
"body": null,
"index": 0,
"isInternal": false,
"x": -5.25,
"y": -30.25
},
{
"body": null,
"index": 1,
"isInternal": false,
"x": 805.25,
"y": -30.25
},
{
"body": null,
"index": 2,
"isInternal": false,
"x": 805.25,
"y": 20.25
},
{
"body": null,
"index": 3,
"isInternal": false,
"x": -5.25,
"y": 20.25
},
{
"angle": 0,
"anglePrev": 0,
"angularSpeed": 0,
"angularVelocity": 0,
"area": 40930.25,
"axes": {
"#": 25
},
"bounds": {
"#": 28
},
"collisionFilter": {
"#": 31
},
"constraintImpulse": {
"#": 32
},
"density": {
"#.": "Number",
"#v": [
"Infinity"
]
},
"force": {
"#": 33
},
"friction": 1,
"frictionAir": 0.01,
"frictionStatic": 0.5,
"id": 1,
"inertia": {
"#.": "Number",
"#v": [
"Infinity"
]
},
"inverseInertia": 0,
"inverseMass": 0,
"isSensor": false,
"isSleeping": false,
"isStatic": true,
"label": "Rectangle Body",
"mass": {
"#.": "Number",
"#v": [
"Infinity"
]
},
"motion": 0,
"parent": null,
"position": {
"#": 34
},
"positionImpulse": {
"#": 35
},
"positionPrev": {
"#": 36
},
"region": {
"#": 37
},
"render": {
"#": 38
},
"restitution": 0,
"sleepCounter": 0,
"sleepThreshold": 60,
"slop": 0.05,
"speed": 0,
"timeScale": 1,
"torque": 0,
"totalContacts": 0,
"type": "body",
"velocity": {
"#": 40
},
"vertices": {
"#": 41
}
},
[
{
"#": 26
},
{
"#": 27
}
],
{
"x": 0,
"y": 1
},
{
"x": -1,
"y": 0
},
{
"max": {
"#": 29
},
"min": {
"#": 30
}
},
{
"x": 805.25,
"y": 630.25
},
{
"x": -5.25,
"y": 579.75
},
{
"category": 1,
"group": 0,
"mask": 4294967295
},
{
"angle": 0,
"x": 0,
"y": 0
},
{
"x": 0,
"y": 0
},
{
"x": 400,
"y": 605
},
{
"x": 0,
"y": 0
},
{
"x": 400,
"y": 605
},
{
"endCol": 16,
"endRow": 13,
"id": "-1,16,12,13",
"startCol": -1,
"startRow": 12
},
{
"fillStyle": "#eeeeee",
"lineWidth": 1.5,
"opacity": 1,
"sprite": {
"#": 39
},
"strokeStyle": "#bbbbbb",
"visible": true
},
{
"xOffset": 0.5,
"xScale": 1,
"yOffset": 0.5,
"yScale": 1
},
{
"x": 0,
"y": 0
},
[
{
"#": 42
},
{
"#": 43
},
{
"#": 44
},
{
"#": 45
}
],
{
"body": null,
"index": 0,
"isInternal": false,
"x": -5.25,
"y": 579.75
},
{
"body": null,
"index": 1,
"isInternal": false,
"x": 805.25,
"y": 579.75
},
{
"body": null,
"index": 2,
"isInternal": false,
"x": 805.25,
"y": 630.25
},
{
"body": null,
"index": 3,
"isInternal": false,
"x": -5.25,
"y": 630.25
},
{
"angle": 0,
"anglePrev": 0,
"angularSpeed": 0,
"angularVelocity": 0,
"area": 30830.25,
"axes": {
"#": 47
},
"bounds": {
"#": 50
},
"collisionFilter": {
"#": 53
},
"constraintImpulse": {
"#": 54
},
"density": {
"#.": "Number",
"#v": [
"Infinity"
]
},
"force": {
"#": 55
},
"friction": 1,
"frictionAir": 0.01,
"frictionStatic": 0.5,
"id": 2,
"inertia": {
"#.": "Number",
"#v": [
"Infinity"
]
},
"inverseInertia": 0,
"inverseMass": 0,
"isSensor": false,
"isSleeping": false,
"isStatic": true,
"label": "Rectangle Body",
"mass": {
"#.": "Number",
"#v": [
"Infinity"
]
},
"motion": 0,
"parent": null,
"position": {
"#": 56
},
"positionImpulse": {
"#": 57
},
"positionPrev": {
"#": 58
},
"region": {
"#": 59
},
"render": {
"#": 60
},
"restitution": 0,
"sleepCounter": 0,
"sleepThreshold": 60,
"slop": 0.05,
"speed": 0,
"timeScale": 1,
"torque": 0,
"totalContacts": 0,
"type": "body",
"velocity": {
"#": 62
},
"vertices": {
"#": 63
}
},
[
{
"#": 48
},
{
"#": 49
}
],
{
"x": 0,
"y": 1
},
{
"x": -1,
"y": 0
},
{
"max": {
"#": 51
},
"min": {
"#": 52
}
},
{
"x": 830.25,
"y": 605.25
},
{
"x": 779.75,
"y": -5.25
},
{
"category": 1,
"group": 0,
"mask": 4294967295
},
{
"angle": 0,
"x": 0,
"y": 0
},
{
"x": 0,
"y": 0
},
{
"x": 805,
"y": 300
},
{
"x": 0,
"y": 0
},
{
"x": 805,
"y": 300
},
{
"endCol": 17,
"endRow": 12,
"id": "16,17,-1,12",
"startCol": 16,
"startRow": -1
},
{
"fillStyle": "#eeeeee",
"lineWidth": 1.5,
"opacity": 1,
"sprite": {
"#": 61
},
"strokeStyle": "#bbbbbb",
"visible": true
},
{
"xOffset": 0.5,
"xScale": 1,
"yOffset": 0.5,
"yScale": 1
},
{
"x": 0,
"y": 0
},
[
{
"#": 64
},
{
"#": 65
},
{
"#": 66
},
{
"#": 67
}
],
{
"body": null,
"index": 0,
"isInternal": false,
"x": 779.75,
"y": -5.25
},
{
"body": null,
"index": 1,
"isInternal": false,
"x": 830.25,
"y": -5.25
},
{
"body": null,
"index": 2,
"isInternal": false,
"x": 830.25,
"y": 605.25
},
{
"body": null,
"index": 3,
"isInternal": false,
"x": 779.75,
"y": 605.25
},
{
"angle": 0,
"anglePrev": 0,
"angularSpeed": 0,
"angularVelocity": 0,
"area": 30830.25,
"axes": {
"#": 69
},
"bounds": {
"#": 72
},
"collisionFilter": {
"#": 75
},
"constraintImpulse": {
"#": 76
},
"density": {
"#.": "Number",
"#v": [
"Infinity"
]
},
"force": {
"#": 77
},
"friction": 1,
"frictionAir": 0.01,
"frictionStatic": 0.5,
"id": 3,
"inertia": {
"#.": "Number",
"#v": [
"Infinity"
]
},
"inverseInertia": 0,
"inverseMass": 0,
"isSensor": false,
"isSleeping": false,
"isStatic": true,
"label": "Rectangle Body",
"mass": {
"#.": "Number",
"#v": [
"Infinity"
]
},
"motion": 0,
"parent": null,
"position": {
"#": 78
},
"positionImpulse": {
"#": 79
},
"positionPrev": {
"#": 80
},
"region": {
"#": 81
},
"render": {
"#": 82
},
"restitution": 0,
"sleepCounter": 0,
"sleepThreshold": 60,
"slop": 0.05,
"speed": 0,
"timeScale": 1,
"torque": 0,
"totalContacts": 0,
"type": "body",
"velocity": {
"#": 84
},
"vertices": {
"#": 85
}
},
[
{
"#": 70
},
{
"#": 71
}
],
{
"x": 0,
"y": 1
},
{
"x": -1,
"y": 0
},
{
"max": {
"#": 73
},
"min": {
"#": 74
}
},
{
"x": 20.25,
"y": 605.25
},
{
"x": -30.25,
"y": -5.25
},
{
"category": 1,
"group": 0,
"mask": 4294967295
},
{
"angle": 0,
"x": 0,
"y": 0
},
{
"x": 0,
"y": 0
},
{
"x": -5,
"y": 300
},
{
"x": 0,
"y": 0
},
{
"x": -5,
"y": 300
},
{
"endCol": 0,
"endRow": 12,
"id": "-1,0,-1,12",
"startCol": -1,
"startRow": -1
},
{
"fillStyle": "#eeeeee",
"lineWidth": 1.5,
"opacity": 1,
"sprite": {
"#": 83
},
"strokeStyle": "#bbbbbb",
"visible": true
},
{
"xOffset": 0.5,
"xScale": 1,
"yOffset": 0.5,
"yScale": 1
},
{
"x": 0,
"y": 0
},
[
{
"#": 86
},
{
"#": 87
},
{
"#": 88
},
{
"#": 89
}
],
{
"body": null,
"index": 0,
"isInternal": false,
"x": -30.25,
"y": -5.25
},
{
"body": null,
"index": 1,
"isInternal": false,
"x": 20.25,
"y": -5.25
},
{
"body": null,
"index": 2,
"isInternal": false,
"x": 20.25,
"y": 605.25
},
{
"body": null,
"index": 3,
"isInternal": false,
"x": -30.25,
"y": 605.25
},
{
"angle": 0,
"anglePrev": 0,
"angularSpeed": 0,
"angularVelocity": 0,
"area": 16000,
"axes": {
"#": 91
},
"bounds": {
"#": 96
},
"collisionFilter": {
"#": 99
},
"constraintImpulse": {
"#": 100
},
"density": 0.001,
"force": {
"#": 101
},
"friction": 0.1,
"frictionAir": 0.01,
"frictionStatic": 0.5,
"id": 6,
"inertia": 221866.66667,
"inverseInertia": 0,
"inverseMass": 0.0625,
"isSensor": false,
"isSleeping": false,
"isStatic": false,
"label": "Body",
"mass": 16,
"motion": 0,
"parent": null,
"position": {
"#": 102
},
"positionImpulse": {
"#": 103
},
"positionPrev": {
"#": 104
},
"region": {
"#": 105
},
"render": {
"#": 106
},
"restitution": 0,
"sleepCounter": 0,
"sleepThreshold": 60,
"slop": 0.05,
"speed": 2.90727,
"timeScale": 1,
"torque": 0,
"totalContacts": 0,
"type": "body",
"velocity": {
"#": 108
},
"vertices": {
"#": 109
}
},
[
{
"#": 92
},
{
"#": 93
},
{
"#": 94
},
{
"#": 95
}
],
{
"x": -0.70711,
"y": -0.70711
},
{
"x": 0,
"y": -1
},
{
"x": 0.70711,
"y": -0.70711
},
{
"x": 1,
"y": 0
},
{
"max": {
"#": 97
},
"min": {
"#": 98
}
},
{
"x": 300,
"y": 320.64303
},
{
"x": 100,
"y": 117.73575
},
{
"category": 1,
"group": 0,
"mask": 4294967295
},
{
"angle": 0,
"x": 0,
"y": 0
},
{
"x": 0,
"y": 0
},
{
"x": 200,
"y": 217.73575
},
{
"x": 0,
"y": 0
},
{
"x": 200,
"y": 214.82848
},
{
"endCol": 6,
"endRow": 6,
"id": "2,6,2,6",
"startCol": 2,
"startRow": 2
},
{
"fillStyle": "#C7F464",
"lineWidth": 1.5,
"opacity": 1,
"sprite": {
"#": 107
},
"strokeStyle": "#94c131",
"visible": true
},
{
"xOffset": 0.5,
"xScale": 1,
"yOffset": 0.5,
"yScale": 1
},
{
"x": 0,
"y": 2.90727
},
[
{
"#": 110
},
{
"#": 111
},
{
"#": 112
},
{
"#": 113
},
{
"#": 114
},
{
"#": 115
},
{
"#": 116
},
{
"#": 117
}
],
{
"body": null,
"index": 0,
"isInternal": false,
"x": 300,
"y": 237.73575
},
{
"body": null,
"index": 1,
"isInternal": false,
"x": 220,
"y": 317.73575
},
{
"body": null,
"index": 2,
"isInternal": false,
"x": 180,
"y": 317.73575
},
{
"body": null,
"index": 3,
"isInternal": false,
"x": 100,
"y": 237.73575
},
{
"body": null,
"index": 4,
"isInternal": false,
"x": 100,
"y": 197.73575
},
{
"body": null,
"index": 5,
"isInternal": false,
"x": 180,
"y": 117.73575
},
{
"body": null,
"index": 6,
"isInternal": false,
"x": 220,
"y": 117.73575
},
{
"body": null,
"index": 7,
"isInternal": false,
"x": 300,
"y": 197.73575
},
{
"angle": -0.07143,
"anglePrev": -0.06087,
"angularSpeed": 0.0098,
"angularVelocity": -0.0098,
"area": 11199.93666,
"axes": {
"#": 119
},
"bounds": {
"#": 134
},
"collisionFilter": {
"#": 137
},
"constraintImpulse": {
"#": 138
},
"density": 0.001,
"force": {
"#": 139
},
"friction": 0.1,
"frictionAir": 0.01,
"frictionStatic": 0.5,
"id": 11,
"inertia": 19964.55116,
"inverseInertia": 0.00005,
"inverseMass": 0.08929,
"isSensor": false,
"isSleeping": false,
"isStatic": false,
"label": "Body",
"mass": 11.19994,
"motion": 0,
"parent": null,
"position": {
"#": 140
},
"positionImpulse": {
"#": 141
},
"positionPrev": {
"#": 142
},
"region": {
"#": 143
},
"render": {
"#": 144
},
"restitution": 0,
"sleepCounter": 0,
"sleepThreshold": 60,
"slop": 0.05,
"speed": 0.95861,
"timeScale": 1,
"torque": 0,
"totalContacts": 0,
"type": "body",
"velocity": {
"#": 146
},
"vertices": {
"#": 147
}
},
[
{
"#": 120
},
{
"#": 121
},
{
"#": 122
},
{
"#": 123
},
{
"#": 124
},
{
"#": 125
},
{
"#": 126
},
{
"#": 127
},
{
"#": 128
},
{
"#": 129
},
{
"#": 130
},
{
"#": 131
},
{
"#": 132
},
{
"#": 133
}
],
{
"x": -0.98554,
"y": -0.16944
},
{
"x": -0.91642,
"y": -0.40022
},
{
"x": -0.7939,
"y": -0.60805
},
{
"x": -0.62541,
"y": -0.7803
},
{
"x": -0.42033,
"y": -0.90737
},
{
"x": -0.19112,
"y": -0.98157
},
{
"x": -0.07137,
"y": -0.99745
},
{
"x": 0.04942,
"y": -0.99878
},
{
"x": 0.28686,
"y": -0.95797
},
{
"x": 0.50794,
"y": -0.86139
},
{
"x": 0.69924,
"y": -0.71489
},
{
"x": 0.8501,
"y": -0.52662
},
{
"x": 0.95138,
"y": -0.30803
},
{
"x": 0.99745,
"y": -0.07137
},
{
"max": {
"#": 135
},
"min": {
"#": 136
}
},
{
"x": 580.24645,
"y": 488.37583
},
{
"x": 359.26614,
"y": 267.58568
},
{
"category": 1,
"group": 0,
"mask": 4294967295
},
{
"angle": 0,
"x": 0,
"y": 0
},
{
"x": 0,
"y": 0
},
{
"x": 470.1218,
"y": 377.6707
},
{
"x": 0,
"y": 0
},
{
"x": 470.92775,
"y": 377.30496
},
{
"endCol": 12,
"endRow": 10,
"id": "7,12,5,10",
"startCol": 7,
"startRow": 5
},
{
"fillStyle": "#C44D58",
"lineWidth": 1.5,
"opacity": 1,
"sprite": {
"#": 145
},
"strokeStyle": "#911a25",
"visible": true
},
{
"xOffset": 0.5,
"xScale": 1,
"yOffset": 0.5,
"yScale": 1
},
{
"x": -0.73102,
"y": 0.62012
},
[
{
"#": 148
},
{
"#": 149
},
{
"#": 150
},
{
"#": 151
},
{
"#": 152
},
{
"#": 153
},
{
"#": 154
},
{
"#": 155
},
{
"#": 156
},
{
"#": 157
},
{
"#": 158
},
{
"#": 159
},
{
"#": 160
},
{
"#": 161
},
{
"#": 162
},
{
"#": 163
},
{
"#": 164
},
{
"#": 165
},
{
"#": 166
},
{
"#": 167
},
{
"#": 168
},
{
"#": 169
},
{
"#": 170
},
{
"#": 171
},
{
"#": 172
},
{
"#": 173
},
{
"#": 174
},
{
"#": 175
}
],
{
"body": null,
"index": 0,
"isInternal": false,
"x": 580.24645,
"y": 448.60796
},
{
"body": null,
"index": 1,
"isInternal": false,
"x": 579.02103,
"y": 455.7356
},
{
"body": null,
"index": 2,
"isInternal": false,
"x": 576.12665,
"y": 462.36307
},
{
"body": null,
"index": 3,
"isInternal": false,
"x": 571.72921,
"y": 468.10456
},
{
"body": null,
"index": 4,
"isInternal": false,
"x": 566.08565,
"y": 472.62788
},
{
"body": null,
"index": 5,
"isInternal": false,
"x": 559.52289,
"y": 475.66802
},
{
"body": null,
"index": 6,
"isInternal": false,
"x": 552.42443,
"y": 477.05016
},
{
"body": null,
"index": 7,
"isInternal": false,
"x": 402.80695,
"y": 487.75571
},
{
"body": null,
"index": 8,
"isInternal": false,
"x": 395.58402,
"y": 487.3983
},
{
"body": null,
"index": 9,
"isInternal": false,
"x": 388.65527,
"y": 485.32352
},
{
"body": null,
"index": 10,
"isInternal": false,
"x": 382.42519,
"y": 481.64979
},
{
"body": null,
"index": 11,
"isInternal": false,
"x": 377.2551,
"y": 476.59289
},
{
"body": null,
"index": 12,
"isInternal": false,
"x": 373.44661,
"y": 470.44502
},
{
"body": null,
"index": 13,
"isInternal": false,
"x": 371.21886,
"y": 463.56447
},
{
"body": null,
"index": 14,
"isInternal": false,
"x": 359.99716,
"y": 306.73343
},
{
"body": null,
"index": 15,
"isInternal": false,
"x": 361.22258,
"y": 299.6058
},
{
"body": null,
"index": 16,
"isInternal": false,
"x": 364.11696,
"y": 292.97832
},
{
"body": null,
"index": 17,
"isInternal": false,
"x": 368.5144,
"y": 287.23684
},
{
"body": null,
"index": 18,
"isInternal": false,
"x": 374.15796,
"y": 282.71352
},
{
"body": null,
"index": 19,
"isInternal": false,
"x": 380.72072,
"y": 279.67338
},
{
"body": null,
"index": 20,
"isInternal": false,
"x": 387.81918,
"y": 278.29124
},
{
"body": null,
"index": 21,
"isInternal": false,
"x": 537.43666,
"y": 267.58568
},
{
"body": null,
"index": 22,
"isInternal": false,
"x": 544.65959,
"y": 267.94309
},
{
"body": null,
"index": 23,
"isInternal": false,
"x": 551.58833,
"y": 270.01788
},
{
"body": null,
"index": 24,
"isInternal": false,
"x": 557.81842,
"y": 273.6916
},
{
"body": null,
"index": 25,
"isInternal": false,
"x": 562.98851,
"y": 278.74851
},
{
"body": null,
"index": 26,
"isInternal": false,
"x": 566.797,
"y": 284.89637
},
{
"body": null,
"index": 27,
"isInternal": false,
"x": 569.02475,
"y": 291.77692
},
{
"max": {
"#": 177
},
"min": {
"#": 178
}
},
{
"x": {
"#.": "Number",
"#v": [
"Infinity"
]
},
"y": {
"#.": "Number",
"#v": [
"Infinity"
]
}
},
{
"x": {
"#.": "Number",
"#v": [
"-Infinity"
]
},
"y": {
"#.": "Number",
"#v": [
"-Infinity"
]
}
},
[],
[
{
"#": 181
},
{
"#": 184
}
],
{
"angularStiffness": 1,
"bodyB": "",
"id": 120,
"label": "Mouse Constraint",
"length": 0.01,
"pointA": {
"#": 182
},
"pointB": "",
"render": {
"#": 183
},
"stiffness": 0.1,
"type": "constraint"
},
{
"x": 0,
"y": 0
},
{
"lineWidth": 3,
"strokeStyle": "#90EE90",
"visible": true
},
{
"angleB": -0.07143,
"angularStiffness": 0,
"bodyB": null,
"id": 12,
"label": "Constraint",
"length": 237.17082,
"pointA": {
"#": 185
},
"pointB": {
"#": 186
},
"render": {
"#": 187
},
"stiffness": 1,
"type": "constraint"
},
{
"x": 400,
"y": 100
},
{
"x": -3.56852,
"y": -49.87249
},
{
"lineWidth": 2,
"strokeStyle": "#666",
"visible": true
},
{
"scale": 0.001,
"x": 0,
"y": 1
}
]