0
0
Fork 0
mirror of https://github.com/liabru/matter-js.git synced 2024-11-30 10:20:52 -05:00
liabru-matter-js/test/browser/refs/compound/compound-0.json

1673 lines
21 KiB
JSON
Raw Normal View History

2015-08-03 19:53:31 -04:00
[
{
"bodies": {
"#": 1
},
"bounds": {
"#": 170
},
"composites": {
"#": 173
},
"constraints": {
"#": 174
},
"gravity": {
2015-08-25 18:33:04 -04:00
"#": 183
2015-08-03 19:53:31 -04:00
},
2015-08-25 18:33:04 -04:00
"id": 119,
2015-08-03 19:53:31 -04:00
"isModified": true,
"label": "World",
"parent": "",
"type": "composite"
},
[
{
"#": 2
},
{
"#": 23
},
{
"#": 44
},
{
"#": 65
},
{
"#": 86
},
{
"#": 113
}
],
{
"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,
"isSleeping": false,
"isStatic": true,
"label": "Rectangle Body",
"mass": {
"#.": "Number",
"#v": [
"Infinity"
]
},
"motion": 0,
"parent": null,
"position": {
"#": 12
},
"positionImpulse": {
"#": 13
},
"positionPrev": {
"#": 14
},
"render": {
"#": 15
},
"restitution": 0,
"sleepCounter": 0,
"sleepThreshold": 60,
"slop": 0.05,
"speed": 0,
"timeScale": 1,
"torque": 0,
"totalContacts": 0,
"type": "body",
"velocity": {
"#": 17
},
"vertices": {
"#": 18
}
},
[
{
"#": 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
},
{
"fillStyle": "#eeeeee",
"lineWidth": 1.5,
"sprite": {
"#": 16
},
"strokeStyle": "#bbbbbb",
"visible": true
},
{
"xScale": 1,
"yScale": 1
},
{
"x": 0,
"y": 0
},
[
{
"#": 19
},
{
"#": 20
},
{
"#": 21
},
{
"#": 22
}
],
{
"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": {
"#": 24
},
"bounds": {
"#": 27
},
"collisionFilter": {
"#": 30
},
"constraintImpulse": {
"#": 31
},
"density": {
"#.": "Number",
"#v": [
"Infinity"
]
},
"force": {
"#": 32
},
"friction": 1,
"frictionAir": 0.01,
"frictionStatic": 0.5,
"id": 1,
"inertia": {
"#.": "Number",
"#v": [
"Infinity"
]
},
"inverseInertia": 0,
"inverseMass": 0,
"isSleeping": false,
"isStatic": true,
"label": "Rectangle Body",
"mass": {
"#.": "Number",
"#v": [
"Infinity"
]
},
"motion": 0,
"parent": null,
"position": {
"#": 33
},
"positionImpulse": {
"#": 34
},
"positionPrev": {
"#": 35
},
"render": {
"#": 36
},
"restitution": 0,
"sleepCounter": 0,
"sleepThreshold": 60,
"slop": 0.05,
"speed": 0,
"timeScale": 1,
"torque": 0,
"totalContacts": 0,
"type": "body",
"velocity": {
"#": 38
},
"vertices": {
"#": 39
}
},
[
{
"#": 25
},
{
"#": 26
}
],
{
"x": 0,
"y": 1
},
{
"x": -1,
"y": 0
},
{
"max": {
"#": 28
},
"min": {
"#": 29
}
},
{
"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
},
{
"fillStyle": "#eeeeee",
"lineWidth": 1.5,
"sprite": {
"#": 37
},
"strokeStyle": "#bbbbbb",
"visible": true
},
{
"xScale": 1,
"yScale": 1
},
{
"x": 0,
"y": 0
},
[
{
"#": 40
},
{
"#": 41
},
{
"#": 42
},
{
"#": 43
}
],
{
"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": {
"#": 45
},
"bounds": {
"#": 48
},
"collisionFilter": {
"#": 51
},
"constraintImpulse": {
"#": 52
},
"density": {
"#.": "Number",
"#v": [
"Infinity"
]
},
"force": {
"#": 53
},
"friction": 1,
"frictionAir": 0.01,
"frictionStatic": 0.5,
"id": 2,
"inertia": {
"#.": "Number",
"#v": [
"Infinity"
]
},
"inverseInertia": 0,
"inverseMass": 0,
"isSleeping": false,
"isStatic": true,
"label": "Rectangle Body",
"mass": {
"#.": "Number",
"#v": [
"Infinity"
]
},
"motion": 0,
"parent": null,
"position": {
"#": 54
},
"positionImpulse": {
"#": 55
},
"positionPrev": {
"#": 56
},
"render": {
"#": 57
},
"restitution": 0,
"sleepCounter": 0,
"sleepThreshold": 60,
"slop": 0.05,
"speed": 0,
"timeScale": 1,
"torque": 0,
"totalContacts": 0,
"type": "body",
"velocity": {
"#": 59
},
"vertices": {
"#": 60
}
},
[
{
"#": 46
},
{
"#": 47
}
],
{
"x": 0,
"y": 1
},
{
"x": -1,
"y": 0
},
{
"max": {
"#": 49
},
"min": {
"#": 50
}
},
{
"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
},
{
"fillStyle": "#eeeeee",
"lineWidth": 1.5,
"sprite": {
"#": 58
},
"strokeStyle": "#bbbbbb",
"visible": true
},
{
"xScale": 1,
"yScale": 1
},
{
"x": 0,
"y": 0
},
[
{
"#": 61
},
{
"#": 62
},
{
"#": 63
},
{
"#": 64
}
],
{
"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": {
"#": 66
},
"bounds": {
"#": 69
},
"collisionFilter": {
"#": 72
},
"constraintImpulse": {
"#": 73
},
"density": {
"#.": "Number",
"#v": [
"Infinity"
]
},
"force": {
"#": 74
},
"friction": 1,
"frictionAir": 0.01,
"frictionStatic": 0.5,
"id": 3,
"inertia": {
"#.": "Number",
"#v": [
"Infinity"
]
},
"inverseInertia": 0,
"inverseMass": 0,
"isSleeping": false,
"isStatic": true,
"label": "Rectangle Body",
"mass": {
"#.": "Number",
"#v": [
"Infinity"
]
},
"motion": 0,
"parent": null,
"position": {
"#": 75
},
"positionImpulse": {
"#": 76
},
"positionPrev": {
"#": 77
},
"render": {
"#": 78
},
"restitution": 0,
"sleepCounter": 0,
"sleepThreshold": 60,
"slop": 0.05,
"speed": 0,
"timeScale": 1,
"torque": 0,
"totalContacts": 0,
"type": "body",
"velocity": {
"#": 80
},
"vertices": {
"#": 81
}
},
[
{
"#": 67
},
{
"#": 68
}
],
{
"x": 0,
"y": 1
},
{
"x": -1,
"y": 0
},
{
"max": {
"#": 70
},
"min": {
"#": 71
}
},
{
"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
},
{
"fillStyle": "#eeeeee",
"lineWidth": 1.5,
"sprite": {
"#": 79
},
"strokeStyle": "#bbbbbb",
"visible": true
},
{
"xScale": 1,
"yScale": 1
},
{
"x": 0,
"y": 0
},
[
{
"#": 82
},
{
"#": 83
},
{
"#": 84
},
{
"#": 85
}
],
{
"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": {
"#": 87
},
"bounds": {
"#": 92
},
"collisionFilter": {
"#": 95
},
"constraintImpulse": {
"#": 96
},
"density": 0.001,
"force": {
"#": 97
},
"friction": 0.1,
"frictionAir": 0.01,
"frictionStatic": 0.5,
"id": 6,
"inertia": 221866.66667,
"inverseInertia": 0,
2015-08-03 19:53:31 -04:00
"inverseMass": 0.0625,
"isSleeping": false,
"isStatic": false,
"label": "Body",
"mass": 16,
"motion": 0,
"parent": null,
"position": {
"#": 98
},
"positionImpulse": {
"#": 99
},
"positionPrev": {
"#": 100
},
"render": {
"#": 101
},
"restitution": 0,
"sleepCounter": 0,
"sleepThreshold": 60,
"slop": 0.05,
"speed": 0,
"timeScale": 1,
"torque": 0,
"totalContacts": 0,
"type": "body",
"velocity": {
"#": 103
},
"vertices": {
"#": 104
}
},
[
{
"#": 88
},
{
"#": 89
},
{
"#": 90
},
{
"#": 91
}
],
{
"x": -0.70711,
"y": -0.70711
2015-08-03 19:53:31 -04:00
},
{
"x": 0,
"y": -1
},
{
"x": 0.70711,
"y": -0.70711
2015-08-03 19:53:31 -04:00
},
{
"x": 1,
"y": 0
},
{
"max": {
"#": 93
},
"min": {
"#": 94
}
},
{
"x": 300,
"y": 300
},
{
"x": 100,
"y": 100
},
{
"category": 1,
"group": 0,
"mask": 4294967295
},
{
"angle": 0,
"x": 0,
"y": 0
},
{
"x": 0,
"y": 0
},
{
"x": 200,
"y": 200
},
{
"x": 0,
"y": 0
},
{
"x": 200,
"y": 200
},
{
"fillStyle": "#C7F464",
"lineWidth": 1.5,
"sprite": {
"#": 102
},
"strokeStyle": "#94c131",
"visible": true
},
{
"xScale": 1,
"yScale": 1
},
{
"x": 0,
"y": 0
},
[
{
"#": 105
},
{
"#": 106
},
{
"#": 107
},
{
"#": 108
},
{
"#": 109
},
{
"#": 110
},
{
"#": 111
},
{
"#": 112
}
],
{
"body": null,
"index": 0,
"isInternal": false,
"x": 300,
"y": 220
},
{
"body": null,
"index": 1,
"isInternal": false,
"x": 220,
"y": 300
},
{
"body": null,
"index": 2,
"isInternal": false,
"x": 180,
"y": 300
},
{
"body": null,
"index": 3,
"isInternal": false,
"x": 100,
"y": 220
},
{
"body": null,
"index": 4,
"isInternal": false,
"x": 100,
"y": 180
},
{
"body": null,
"index": 5,
"isInternal": false,
"x": 180,
"y": 100
},
{
"body": null,
"index": 6,
"isInternal": false,
"x": 220,
"y": 100
},
{
"body": null,
"index": 7,
"isInternal": false,
"x": 300,
"y": 180
},
{
"angle": 0,
"anglePrev": 0,
"angularSpeed": 0,
"angularVelocity": 0,
"area": 11199.93666,
2015-08-03 19:53:31 -04:00
"axes": {
"#": 114
},
"bounds": {
"#": 129
},
"collisionFilter": {
"#": 132
},
"constraintImpulse": {
"#": 133
},
"density": 0.001,
"force": {
"#": 134
},
"friction": 0.1,
"frictionAir": 0.01,
"frictionStatic": 0.5,
"id": 11,
"inertia": 19964.55116,
"inverseInertia": 0.00005,
"inverseMass": 0.08929,
2015-08-03 19:53:31 -04:00
"isSleeping": false,
"isStatic": false,
"label": "Body",
"mass": 11.19994,
2015-08-03 19:53:31 -04:00
"motion": 0,
"parent": null,
"position": {
"#": 135
},
"positionImpulse": {
"#": 136
},
"positionPrev": {
"#": 137
},
"render": {
"#": 138
},
"restitution": 0,
"sleepCounter": 0,
"sleepThreshold": 60,
"slop": 0.05,
"speed": 0,
"timeScale": 1,
"torque": 0,
"totalContacts": 0,
"type": "body",
"velocity": {
"#": 140
},
"vertices": {
"#": 141
}
},
[
{
"#": 115
},
{
"#": 116
},
{
"#": 117
},
{
"#": 118
},
{
"#": 119
},
{
"#": 120
},
{
"#": 121
},
{
"#": 122
},
{
"#": 123
},
{
"#": 124
},
{
"#": 125
},
{
"#": 126
},
{
"#": 127
},
{
"#": 128
}
],
{
"x": -0.97093,
"y": -0.23935
2015-08-03 19:53:31 -04:00
},
{
"x": -0.88552,
"y": -0.46461
2015-08-03 19:53:31 -04:00
},
{
"x": -0.74848,
"y": -0.66316
2015-08-03 19:53:31 -04:00
},
{
"x": -0.56812,
"y": -0.82294
2015-08-03 19:53:31 -04:00
},
{
"x": -0.3545,
"y": -0.93506
2015-08-03 19:53:31 -04:00
},
{
"x": -0.12058,
"y": -0.9927
2015-08-03 19:53:31 -04:00
},
{
"x": 0,
"y": -1
},
{
"x": 0.12058,
"y": -0.9927
2015-08-03 19:53:31 -04:00
},
{
"x": 0.3545,
"y": -0.93506
2015-08-03 19:53:31 -04:00
},
{
"x": 0.56812,
"y": -0.82294
2015-08-03 19:53:31 -04:00
},
{
"x": 0.74848,
"y": -0.66316
2015-08-03 19:53:31 -04:00
},
{
"x": 0.88552,
"y": -0.46461
2015-08-03 19:53:31 -04:00
},
{
"x": 0.97093,
"y": -0.23935
2015-08-03 19:53:31 -04:00
},
{
"x": 1,
"y": 0
},
{
"max": {
"#": 130
},
"min": {
"#": 131
}
},
{
"x": 579.781,
"y": 480
},
{
"x": 370.219,
"y": 270
},
{
"category": 1,
"group": 0,
"mask": 4294967295
},
{
"angle": 0,
"x": 0,
"y": 0
},
{
"x": 0,
"y": 0
},
{
"x": 475,
"y": 375
},
{
"x": 0,
"y": 0
},
{
"x": 475,
"y": 375
},
{
"fillStyle": "#C44D58",
"lineWidth": 1.5,
"sprite": {
"#": 139
},
"strokeStyle": "#911a25",
"visible": true
},
{
"xScale": 1,
"yScale": 1
},
{
"x": 0,
"y": 0
},
[
{
"#": 142
},
{
"#": 143
},
{
"#": 144
},
{
"#": 145
},
{
"#": 146
},
{
"#": 147
},
{
"#": 148
},
{
"#": 149
},
{
"#": 150
},
{
"#": 151
},
{
"#": 152
},
{
"#": 153
},
{
"#": 154
},
{
"#": 155
},
{
"#": 156
},
{
"#": 157
},
{
"#": 158
},
{
"#": 159
},
{
"#": 160
},
{
"#": 161
},
{
"#": 162
},
{
"#": 163
},
{
"#": 164
},
{
"#": 165
},
{
"#": 166
},
{
"#": 167
},
{
"#": 168
},
{
"#": 169
}
],
{
"body": null,
"index": 0,
"isInternal": false,
"x": 579.781,
"y": 453.616
},
{
"body": null,
"index": 1,
"isInternal": false,
"x": 578.05,
"y": 460.638
},
{
"body": null,
"index": 2,
"isInternal": false,
"x": 574.69,
"y": 467.042
2015-08-03 19:53:31 -04:00
},
{
"body": null,
"index": 3,
"isInternal": false,
"x": 569.894,
"y": 472.455
},
{
"body": null,
"index": 4,
"isInternal": false,
"x": 563.942,
"y": 476.564
},
{
"body": null,
"index": 5,
"isInternal": false,
"x": 557.179,
"y": 479.128
},
{
"body": null,
"index": 6,
"isInternal": false,
"x": 550,
"y": 480
},
{
"body": null,
"index": 7,
"isInternal": false,
"x": 400,
"y": 480
},
{
"body": null,
"index": 8,
"isInternal": false,
"x": 392.821,
"y": 479.128
},
{
"body": null,
"index": 9,
"isInternal": false,
"x": 386.058,
"y": 476.564
},
{
"body": null,
"index": 10,
"isInternal": false,
"x": 380.106,
"y": 472.455
},
{
"body": null,
"index": 11,
"isInternal": false,
"x": 375.31,
"y": 467.042
2015-08-03 19:53:31 -04:00
},
{
"body": null,
"index": 12,
"isInternal": false,
"x": 371.95,
"y": 460.638
},
{
"body": null,
"index": 13,
"isInternal": false,
"x": 370.219,
"y": 453.616
},
{
"body": null,
"index": 14,
"isInternal": false,
"x": 370.219,
"y": 296.384
},
{
"body": null,
"index": 15,
"isInternal": false,
"x": 371.95,
"y": 289.362
},
{
"body": null,
"index": 16,
"isInternal": false,
"x": 375.31,
"y": 282.958
2015-08-03 19:53:31 -04:00
},
{
"body": null,
"index": 17,
"isInternal": false,
"x": 380.106,
"y": 277.545
},
{
"body": null,
"index": 18,
"isInternal": false,
"x": 386.058,
"y": 273.436
},
{
"body": null,
"index": 19,
"isInternal": false,
"x": 392.821,
"y": 270.872
},
{
"body": null,
"index": 20,
"isInternal": false,
"x": 400,
"y": 270
},
{
"body": null,
"index": 21,
"isInternal": false,
"x": 550,
"y": 270
},
{
"body": null,
"index": 22,
"isInternal": false,
"x": 557.179,
"y": 270.872
},
{
"body": null,
"index": 23,
"isInternal": false,
"x": 563.942,
"y": 273.436
},
{
"body": null,
"index": 24,
"isInternal": false,
"x": 569.894,
"y": 277.545
},
{
"body": null,
"index": 25,
"isInternal": false,
"x": 574.69,
"y": 282.958
2015-08-03 19:53:31 -04:00
},
{
"body": null,
"index": 26,
"isInternal": false,
"x": 578.05,
"y": 289.362
},
{
"body": null,
"index": 27,
"isInternal": false,
"x": 579.781,
"y": 296.384
},
{
"max": {
"#": 171
},
"min": {
"#": 172
}
},
{
"x": {
"#.": "Number",
"#v": [
"Infinity"
]
},
"y": {
"#.": "Number",
"#v": [
"Infinity"
]
}
},
{
"x": {
"#.": "Number",
"#v": [
"-Infinity"
]
},
"y": {
"#.": "Number",
"#v": [
"-Infinity"
]
}
},
[],
[
{
"#": 175
},
{
2015-08-25 18:33:04 -04:00
"#": 179
2015-08-03 19:53:31 -04:00
}
],
{
"angularStiffness": 1,
2015-08-25 18:33:04 -04:00
"id": 120,
2015-08-03 19:53:31 -04:00
"label": "Mouse Constraint",
"length": 0.01,
"pointA": {
"#": 176
},
2015-08-25 18:33:04 -04:00
"pointB": {
2015-08-03 19:53:31 -04:00
"#": 177
},
2015-08-25 18:33:04 -04:00
"render": {
"#": 178
},
2015-08-03 19:53:31 -04:00
"stiffness": 0.1,
"type": "constraint"
},
{
"x": 0,
"y": 0
},
2015-08-25 18:33:04 -04:00
{
"x": 0,
"y": 0
},
2015-08-03 19:53:31 -04:00
{
"lineWidth": 3,
"strokeStyle": "#90EE90",
"visible": true
},
{
"angleB": 0,
"angularStiffness": 0,
"bodyB": null,
"id": 12,
"label": "Constraint",
"length": 237.17082,
2015-08-03 19:53:31 -04:00
"pointA": {
2015-08-25 18:33:04 -04:00
"#": 180
2015-08-03 19:53:31 -04:00
},
"pointB": {
2015-08-25 18:33:04 -04:00
"#": 181
2015-08-03 19:53:31 -04:00
},
"render": {
2015-08-25 18:33:04 -04:00
"#": 182
2015-08-03 19:53:31 -04:00
},
"stiffness": 1,
"type": "constraint"
},
{
"x": 400,
"y": 100
},
{
"x": 0,
"y": -50
},
{
"lineWidth": 2,
"strokeStyle": "#666",
"visible": true
},
{
"x": 0,
"y": 1
}
]