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

1598 lines
No EOL
20 KiB
JSON

[
{
"bodies": {
"#": 1
},
"bounds": {
"#": 161
},
"composites": {
"#": 164
},
"constraints": {
"#": 165
},
"gravity": {
"#": 170
},
"id": 58,
"isModified": true,
"label": "World",
"parent": "",
"type": "composite"
},
[
{
"#": 2
},
{
"#": 23
},
{
"#": 44
},
{
"#": 65
},
{
"#": 86
},
{
"#": 107
}
],
{
"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
},
"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,
"opacity": 1,
"sprite": {
"#": 16
},
"strokeStyle": "#bbbbbb",
"visible": true
},
{
"xOffset": 0.5,
"xScale": 1,
"yOffset": 0.5,
"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,
"isSensor": false,
"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,
"opacity": 1,
"sprite": {
"#": 37
},
"strokeStyle": "#bbbbbb",
"visible": true
},
{
"xOffset": 0.5,
"xScale": 1,
"yOffset": 0.5,
"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,
"isSensor": false,
"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,
"opacity": 1,
"sprite": {
"#": 58
},
"strokeStyle": "#bbbbbb",
"visible": true
},
{
"xOffset": 0.5,
"xScale": 1,
"yOffset": 0.5,
"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,
"isSensor": false,
"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,
"opacity": 1,
"sprite": {
"#": 79
},
"strokeStyle": "#bbbbbb",
"visible": true
},
{
"xOffset": 0.5,
"xScale": 1,
"yOffset": 0.5,
"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": 25000,
"axes": {
"#": 87
},
"bounds": {
"#": 90
},
"collisionFilter": {
"#": 93
},
"constraintImpulse": {
"#": 94
},
"density": {
"#.": "Number",
"#v": [
"Infinity"
]
},
"force": {
"#": 95
},
"friction": 1,
"frictionAir": 0.01,
"frictionStatic": 0.5,
"id": 4,
"inertia": {
"#.": "Number",
"#v": [
"Infinity"
]
},
"inverseInertia": 0,
"inverseMass": 0,
"isSensor": true,
"isSleeping": false,
"isStatic": true,
"label": "Rectangle Body",
"mass": {
"#.": "Number",
"#v": [
"Infinity"
]
},
"motion": 0,
"parent": null,
"position": {
"#": 96
},
"positionImpulse": {
"#": 97
},
"positionPrev": {
"#": 98
},
"render": {
"#": 99
},
"restitution": 0,
"sleepCounter": 0,
"sleepThreshold": 60,
"slop": 0.05,
"speed": 0,
"timeScale": 1,
"torque": 0,
"totalContacts": 0,
"type": "body",
"velocity": {
"#": 101
},
"vertices": {
"#": 102
}
},
[
{
"#": 88
},
{
"#": 89
}
],
{
"x": 0,
"y": 1
},
{
"x": -1,
"y": 0
},
{
"max": {
"#": 91
},
"min": {
"#": 92
}
},
{
"x": 650,
"y": 325
},
{
"x": 150,
"y": 275
},
{
"category": 1,
"group": 0,
"mask": 4294967295
},
{
"angle": 0,
"x": 0,
"y": 0
},
{
"x": 0,
"y": 0
},
{
"x": 400,
"y": 300
},
{
"x": 0,
"y": 0
},
{
"x": 400,
"y": 300
},
{
"fillStyle": "transparent",
"lineWidth": 1.5,
"opacity": 1,
"sprite": {
"#": 100
},
"strokeStyle": "#C44D58",
"visible": true
},
{
"xOffset": 0.5,
"xScale": 1,
"yOffset": 0.5,
"yScale": 1
},
{
"x": 0,
"y": 0
},
[
{
"#": 103
},
{
"#": 104
},
{
"#": 105
},
{
"#": 106
}
],
{
"body": null,
"index": 0,
"isInternal": false,
"x": 150,
"y": 275
},
{
"body": null,
"index": 1,
"isInternal": false,
"x": 650,
"y": 275
},
{
"body": null,
"index": 2,
"isInternal": false,
"x": 650,
"y": 325
},
{
"body": null,
"index": 3,
"isInternal": false,
"x": 150,
"y": 325
},
{
"angle": 0,
"anglePrev": 0,
"angularSpeed": 0,
"angularVelocity": 0,
"area": 2799.98416,
"axes": {
"#": 108
},
"bounds": {
"#": 122
},
"circleRadius": 30,
"collisionFilter": {
"#": 125
},
"constraintImpulse": {
"#": 126
},
"density": 0.001,
"force": {
"#": 127
},
"friction": 0.1,
"frictionAir": 0.01,
"frictionStatic": 0.5,
"id": 5,
"inertia": 4991.13779,
"inverseInertia": 0.0002,
"inverseMass": 0.35714,
"isSensor": false,
"isSleeping": false,
"isStatic": false,
"label": "Circle Body",
"mass": 2.79998,
"motion": 0,
"parent": null,
"position": {
"#": 128
},
"positionImpulse": {
"#": 129
},
"positionPrev": {
"#": 130
},
"render": {
"#": 131
},
"restitution": 0,
"sleepCounter": 0,
"sleepThreshold": 60,
"slop": 0.05,
"speed": 0,
"timeScale": 1,
"torque": 0,
"totalContacts": 0,
"type": "body",
"velocity": {
"#": 133
},
"vertices": {
"#": 134
}
},
[
{
"#": 109
},
{
"#": 110
},
{
"#": 111
},
{
"#": 112
},
{
"#": 113
},
{
"#": 114
},
{
"#": 115
},
{
"#": 116
},
{
"#": 117
},
{
"#": 118
},
{
"#": 119
},
{
"#": 120
},
{
"#": 121
}
],
{
"x": -0.97093,
"y": -0.23935
},
{
"x": -0.88552,
"y": -0.46461
},
{
"x": -0.74848,
"y": -0.66316
},
{
"x": -0.56812,
"y": -0.82294
},
{
"x": -0.3545,
"y": -0.93506
},
{
"x": -0.12058,
"y": -0.9927
},
{
"x": 0.12058,
"y": -0.9927
},
{
"x": 0.3545,
"y": -0.93506
},
{
"x": 0.56812,
"y": -0.82294
},
{
"x": 0.74848,
"y": -0.66316
},
{
"x": 0.88552,
"y": -0.46461
},
{
"x": 0.97093,
"y": -0.23935
},
{
"x": 1,
"y": 0
},
{
"max": {
"#": 123
},
"min": {
"#": 124
}
},
{
"x": 429.781,
"y": 70
},
{
"x": 370.219,
"y": 10
},
{
"category": 1,
"group": 0,
"mask": 4294967295
},
{
"angle": 0,
"x": 0,
"y": 0
},
{
"x": 0,
"y": 0
},
{
"x": 400,
"y": 40
},
{
"x": 0,
"y": 0
},
{
"x": 400,
"y": 40
},
{
"fillStyle": "transparent",
"lineWidth": 1.5,
"opacity": 1,
"sprite": {
"#": 132
},
"strokeStyle": "#C7F464",
"visible": true
},
{
"xOffset": 0.5,
"xScale": 1,
"yOffset": 0.5,
"yScale": 1
},
{
"x": 0,
"y": 0
},
[
{
"#": 135
},
{
"#": 136
},
{
"#": 137
},
{
"#": 138
},
{
"#": 139
},
{
"#": 140
},
{
"#": 141
},
{
"#": 142
},
{
"#": 143
},
{
"#": 144
},
{
"#": 145
},
{
"#": 146
},
{
"#": 147
},
{
"#": 148
},
{
"#": 149
},
{
"#": 150
},
{
"#": 151
},
{
"#": 152
},
{
"#": 153
},
{
"#": 154
},
{
"#": 155
},
{
"#": 156
},
{
"#": 157
},
{
"#": 158
},
{
"#": 159
},
{
"#": 160
}
],
{
"body": null,
"index": 0,
"isInternal": false,
"x": 429.781,
"y": 43.616
},
{
"body": null,
"index": 1,
"isInternal": false,
"x": 428.05,
"y": 50.638
},
{
"body": null,
"index": 2,
"isInternal": false,
"x": 424.69,
"y": 57.042
},
{
"body": null,
"index": 3,
"isInternal": false,
"x": 419.894,
"y": 62.455
},
{
"body": null,
"index": 4,
"isInternal": false,
"x": 413.942,
"y": 66.564
},
{
"body": null,
"index": 5,
"isInternal": false,
"x": 407.179,
"y": 69.128
},
{
"body": null,
"index": 6,
"isInternal": false,
"x": 400,
"y": 70
},
{
"body": null,
"index": 7,
"isInternal": false,
"x": 392.821,
"y": 69.128
},
{
"body": null,
"index": 8,
"isInternal": false,
"x": 386.058,
"y": 66.564
},
{
"body": null,
"index": 9,
"isInternal": false,
"x": 380.106,
"y": 62.455
},
{
"body": null,
"index": 10,
"isInternal": false,
"x": 375.31,
"y": 57.042
},
{
"body": null,
"index": 11,
"isInternal": false,
"x": 371.95,
"y": 50.638
},
{
"body": null,
"index": 12,
"isInternal": false,
"x": 370.219,
"y": 43.616
},
{
"body": null,
"index": 13,
"isInternal": false,
"x": 370.219,
"y": 36.384
},
{
"body": null,
"index": 14,
"isInternal": false,
"x": 371.95,
"y": 29.362
},
{
"body": null,
"index": 15,
"isInternal": false,
"x": 375.31,
"y": 22.958
},
{
"body": null,
"index": 16,
"isInternal": false,
"x": 380.106,
"y": 17.545
},
{
"body": null,
"index": 17,
"isInternal": false,
"x": 386.058,
"y": 13.436
},
{
"body": null,
"index": 18,
"isInternal": false,
"x": 392.821,
"y": 10.872
},
{
"body": null,
"index": 19,
"isInternal": false,
"x": 400,
"y": 10
},
{
"body": null,
"index": 20,
"isInternal": false,
"x": 407.179,
"y": 10.872
},
{
"body": null,
"index": 21,
"isInternal": false,
"x": 413.942,
"y": 13.436
},
{
"body": null,
"index": 22,
"isInternal": false,
"x": 419.894,
"y": 17.545
},
{
"body": null,
"index": 23,
"isInternal": false,
"x": 424.69,
"y": 22.958
},
{
"body": null,
"index": 24,
"isInternal": false,
"x": 428.05,
"y": 29.362
},
{
"body": null,
"index": 25,
"isInternal": false,
"x": 429.781,
"y": 36.384
},
{
"max": {
"#": 162
},
"min": {
"#": 163
}
},
{
"x": {
"#.": "Number",
"#v": [
"Infinity"
]
},
"y": {
"#.": "Number",
"#v": [
"Infinity"
]
}
},
{
"x": {
"#.": "Number",
"#v": [
"-Infinity"
]
},
"y": {
"#.": "Number",
"#v": [
"-Infinity"
]
}
},
[],
[
{
"#": 166
}
],
{
"angularStiffness": 1,
"id": 59,
"label": "Mouse Constraint",
"length": 0.01,
"pointA": {
"#": 167
},
"pointB": {
"#": 168
},
"render": {
"#": 169
},
"stiffness": 0.1,
"type": "constraint"
},
{
"x": 0,
"y": 0
},
{
"x": 0,
"y": 0
},
{
"lineWidth": 3,
"strokeStyle": "#90EE90",
"visible": true
},
{
"scale": 0.001,
"x": 0,
"y": 1
}
]