0
0
Fork 0
mirror of https://github.com/liabru/matter-js.git synced 2025-01-15 16:38:43 -05:00
liabru-matter-js/test/node/refs/sensors/sensors-0.json
2016-04-05 23:55:19 +01:00

1716 lines
No EOL
21 KiB
JSON

[
{
"id": 695,
"type": "composite",
"parent": null,
"isModified": true,
"bodies": {
"#": 1
},
"constraints": {
"#": 167
},
"composites": {
"#": 168
},
"label": "World",
"gravity": {
"#": 169
},
"bounds": {
"#": 170
}
},
[
{
"#": 2
},
{
"#": 24
},
{
"#": 46
},
{
"#": 68
},
{
"#": 90
},
{
"#": 112
}
],
{
"id": 0,
"type": "body",
"label": "Rectangle Body",
"parts": {
"#": 3
},
"angle": 0,
"vertices": {
"#": 4
},
"position": {
"#": 9
},
"force": {
"#": 10
},
"torque": 0,
"positionImpulse": {
"#": 11
},
"constraintImpulse": {
"#": 12
},
"totalContacts": 0,
"speed": 0,
"angularSpeed": 0,
"velocity": {
"#": 13
},
"angularVelocity": 0,
"isSensor": false,
"isStatic": true,
"isSleeping": false,
"motion": 0,
"sleepThreshold": 60,
"density": {
"#.": "Number",
"#v": [
"Infinity"
]
},
"restitution": 0,
"friction": 1,
"frictionStatic": 0.5,
"frictionAir": 0.01,
"collisionFilter": {
"#": 14
},
"slop": 0.05,
"timeScale": 1,
"render": {
"#": 15
},
"bounds": {
"#": 17
},
"positionPrev": {
"#": 20
},
"anglePrev": 0,
"axes": {
"#": 21
},
"area": 40930.25,
"mass": {
"#.": "Number",
"#v": [
"Infinity"
]
},
"inverseMass": 0,
"inertia": {
"#.": "Number",
"#v": [
"Infinity"
]
},
"inverseInertia": 0,
"parent": {
"#": 2
},
"sleepCounter": 0
},
[
{
"#": 2
}
],
[
{
"#": 5
},
{
"#": 6
},
{
"#": 7
},
{
"#": 8
}
],
{
"x": -5.25,
"y": -30.25,
"index": 0,
"body": {
"#": 2
},
"isInternal": false
},
{
"x": 805.25,
"y": -30.25,
"index": 1,
"body": {
"#": 2
},
"isInternal": false
},
{
"x": 805.25,
"y": 20.25,
"index": 2,
"body": {
"#": 2
},
"isInternal": false
},
{
"x": -5.25,
"y": 20.25,
"index": 3,
"body": {
"#": 2
},
"isInternal": false
},
{
"x": 400,
"y": -5
},
{
"x": 0,
"y": 0
},
{
"x": 0,
"y": 0
},
{
"x": 0,
"y": 0,
"angle": 0
},
{
"x": 0,
"y": 0
},
{
"category": 1,
"mask": 4294967295,
"group": 0
},
{
"visible": true,
"opacity": 1,
"sprite": {
"#": 16
},
"lineWidth": 1.5,
"fillStyle": "#eeeeee",
"strokeStyle": "#bbbbbb"
},
{
"xScale": 1,
"yScale": 1,
"xOffset": 0.5,
"yOffset": 0.5
},
{
"min": {
"#": 18
},
"max": {
"#": 19
}
},
{
"x": -5.25,
"y": -30.25
},
{
"x": 805.25,
"y": 20.25
},
{
"x": 400,
"y": -5
},
[
{
"#": 22
},
{
"#": 23
}
],
{
"x": 0,
"y": 1
},
{
"x": -1,
"y": 0
},
{
"id": 1,
"type": "body",
"label": "Rectangle Body",
"parts": {
"#": 25
},
"angle": 0,
"vertices": {
"#": 26
},
"position": {
"#": 31
},
"force": {
"#": 32
},
"torque": 0,
"positionImpulse": {
"#": 33
},
"constraintImpulse": {
"#": 34
},
"totalContacts": 0,
"speed": 0,
"angularSpeed": 0,
"velocity": {
"#": 35
},
"angularVelocity": 0,
"isSensor": false,
"isStatic": true,
"isSleeping": false,
"motion": 0,
"sleepThreshold": 60,
"density": {
"#.": "Number",
"#v": [
"Infinity"
]
},
"restitution": 0,
"friction": 1,
"frictionStatic": 0.5,
"frictionAir": 0.01,
"collisionFilter": {
"#": 36
},
"slop": 0.05,
"timeScale": 1,
"render": {
"#": 37
},
"bounds": {
"#": 39
},
"positionPrev": {
"#": 42
},
"anglePrev": 0,
"axes": {
"#": 43
},
"area": 40930.25,
"mass": {
"#.": "Number",
"#v": [
"Infinity"
]
},
"inverseMass": 0,
"inertia": {
"#.": "Number",
"#v": [
"Infinity"
]
},
"inverseInertia": 0,
"parent": {
"#": 24
},
"sleepCounter": 0
},
[
{
"#": 24
}
],
[
{
"#": 27
},
{
"#": 28
},
{
"#": 29
},
{
"#": 30
}
],
{
"x": -5.25,
"y": 579.75,
"index": 0,
"body": {
"#": 24
},
"isInternal": false
},
{
"x": 805.25,
"y": 579.75,
"index": 1,
"body": {
"#": 24
},
"isInternal": false
},
{
"x": 805.25,
"y": 630.25,
"index": 2,
"body": {
"#": 24
},
"isInternal": false
},
{
"x": -5.25,
"y": 630.25,
"index": 3,
"body": {
"#": 24
},
"isInternal": false
},
{
"x": 400,
"y": 605
},
{
"x": 0,
"y": 0
},
{
"x": 0,
"y": 0
},
{
"x": 0,
"y": 0,
"angle": 0
},
{
"x": 0,
"y": 0
},
{
"category": 1,
"mask": 4294967295,
"group": 0
},
{
"visible": true,
"opacity": 1,
"sprite": {
"#": 38
},
"lineWidth": 1.5,
"fillStyle": "#eeeeee",
"strokeStyle": "#bbbbbb"
},
{
"xScale": 1,
"yScale": 1,
"xOffset": 0.5,
"yOffset": 0.5
},
{
"min": {
"#": 40
},
"max": {
"#": 41
}
},
{
"x": -5.25,
"y": 579.75
},
{
"x": 805.25,
"y": 630.25
},
{
"x": 400,
"y": 605
},
[
{
"#": 44
},
{
"#": 45
}
],
{
"x": 0,
"y": 1
},
{
"x": -1,
"y": 0
},
{
"id": 2,
"type": "body",
"label": "Rectangle Body",
"parts": {
"#": 47
},
"angle": 0,
"vertices": {
"#": 48
},
"position": {
"#": 53
},
"force": {
"#": 54
},
"torque": 0,
"positionImpulse": {
"#": 55
},
"constraintImpulse": {
"#": 56
},
"totalContacts": 0,
"speed": 0,
"angularSpeed": 0,
"velocity": {
"#": 57
},
"angularVelocity": 0,
"isSensor": false,
"isStatic": true,
"isSleeping": false,
"motion": 0,
"sleepThreshold": 60,
"density": {
"#.": "Number",
"#v": [
"Infinity"
]
},
"restitution": 0,
"friction": 1,
"frictionStatic": 0.5,
"frictionAir": 0.01,
"collisionFilter": {
"#": 58
},
"slop": 0.05,
"timeScale": 1,
"render": {
"#": 59
},
"bounds": {
"#": 61
},
"positionPrev": {
"#": 64
},
"anglePrev": 0,
"axes": {
"#": 65
},
"area": 30830.25,
"mass": {
"#.": "Number",
"#v": [
"Infinity"
]
},
"inverseMass": 0,
"inertia": {
"#.": "Number",
"#v": [
"Infinity"
]
},
"inverseInertia": 0,
"parent": {
"#": 46
},
"sleepCounter": 0
},
[
{
"#": 46
}
],
[
{
"#": 49
},
{
"#": 50
},
{
"#": 51
},
{
"#": 52
}
],
{
"x": 779.75,
"y": -5.25,
"index": 0,
"body": {
"#": 46
},
"isInternal": false
},
{
"x": 830.25,
"y": -5.25,
"index": 1,
"body": {
"#": 46
},
"isInternal": false
},
{
"x": 830.25,
"y": 605.25,
"index": 2,
"body": {
"#": 46
},
"isInternal": false
},
{
"x": 779.75,
"y": 605.25,
"index": 3,
"body": {
"#": 46
},
"isInternal": false
},
{
"x": 805,
"y": 300
},
{
"x": 0,
"y": 0
},
{
"x": 0,
"y": 0
},
{
"x": 0,
"y": 0,
"angle": 0
},
{
"x": 0,
"y": 0
},
{
"category": 1,
"mask": 4294967295,
"group": 0
},
{
"visible": true,
"opacity": 1,
"sprite": {
"#": 60
},
"lineWidth": 1.5,
"fillStyle": "#eeeeee",
"strokeStyle": "#bbbbbb"
},
{
"xScale": 1,
"yScale": 1,
"xOffset": 0.5,
"yOffset": 0.5
},
{
"min": {
"#": 62
},
"max": {
"#": 63
}
},
{
"x": 779.75,
"y": -5.25
},
{
"x": 830.25,
"y": 605.25
},
{
"x": 805,
"y": 300
},
[
{
"#": 66
},
{
"#": 67
}
],
{
"x": 0,
"y": 1
},
{
"x": -1,
"y": 0
},
{
"id": 3,
"type": "body",
"label": "Rectangle Body",
"parts": {
"#": 69
},
"angle": 0,
"vertices": {
"#": 70
},
"position": {
"#": 75
},
"force": {
"#": 76
},
"torque": 0,
"positionImpulse": {
"#": 77
},
"constraintImpulse": {
"#": 78
},
"totalContacts": 0,
"speed": 0,
"angularSpeed": 0,
"velocity": {
"#": 79
},
"angularVelocity": 0,
"isSensor": false,
"isStatic": true,
"isSleeping": false,
"motion": 0,
"sleepThreshold": 60,
"density": {
"#.": "Number",
"#v": [
"Infinity"
]
},
"restitution": 0,
"friction": 1,
"frictionStatic": 0.5,
"frictionAir": 0.01,
"collisionFilter": {
"#": 80
},
"slop": 0.05,
"timeScale": 1,
"render": {
"#": 81
},
"bounds": {
"#": 83
},
"positionPrev": {
"#": 86
},
"anglePrev": 0,
"axes": {
"#": 87
},
"area": 30830.25,
"mass": {
"#.": "Number",
"#v": [
"Infinity"
]
},
"inverseMass": 0,
"inertia": {
"#.": "Number",
"#v": [
"Infinity"
]
},
"inverseInertia": 0,
"parent": {
"#": 68
},
"sleepCounter": 0
},
[
{
"#": 68
}
],
[
{
"#": 71
},
{
"#": 72
},
{
"#": 73
},
{
"#": 74
}
],
{
"x": -30.25,
"y": -5.25,
"index": 0,
"body": {
"#": 68
},
"isInternal": false
},
{
"x": 20.25,
"y": -5.25,
"index": 1,
"body": {
"#": 68
},
"isInternal": false
},
{
"x": 20.25,
"y": 605.25,
"index": 2,
"body": {
"#": 68
},
"isInternal": false
},
{
"x": -30.25,
"y": 605.25,
"index": 3,
"body": {
"#": 68
},
"isInternal": false
},
{
"x": -5,
"y": 300
},
{
"x": 0,
"y": 0
},
{
"x": 0,
"y": 0
},
{
"x": 0,
"y": 0,
"angle": 0
},
{
"x": 0,
"y": 0
},
{
"category": 1,
"mask": 4294967295,
"group": 0
},
{
"visible": true,
"opacity": 1,
"sprite": {
"#": 82
},
"lineWidth": 1.5,
"fillStyle": "#eeeeee",
"strokeStyle": "#bbbbbb"
},
{
"xScale": 1,
"yScale": 1,
"xOffset": 0.5,
"yOffset": 0.5
},
{
"min": {
"#": 84
},
"max": {
"#": 85
}
},
{
"x": -30.25,
"y": -5.25
},
{
"x": 20.25,
"y": 605.25
},
{
"x": -5,
"y": 300
},
[
{
"#": 88
},
{
"#": 89
}
],
{
"x": 0,
"y": 1
},
{
"x": -1,
"y": 0
},
{
"id": 4,
"type": "body",
"label": "Rectangle Body",
"parts": {
"#": 91
},
"angle": 0,
"vertices": {
"#": 92
},
"position": {
"#": 97
},
"force": {
"#": 98
},
"torque": 0,
"positionImpulse": {
"#": 99
},
"constraintImpulse": {
"#": 100
},
"totalContacts": 0,
"speed": 0,
"angularSpeed": 0,
"velocity": {
"#": 101
},
"angularVelocity": 0,
"isSensor": true,
"isStatic": true,
"isSleeping": false,
"motion": 0,
"sleepThreshold": 60,
"density": {
"#.": "Number",
"#v": [
"Infinity"
]
},
"restitution": 0,
"friction": 1,
"frictionStatic": 0.5,
"frictionAir": 0.01,
"collisionFilter": {
"#": 102
},
"slop": 0.05,
"timeScale": 1,
"render": {
"#": 103
},
"bounds": {
"#": 105
},
"positionPrev": {
"#": 108
},
"anglePrev": 0,
"axes": {
"#": 109
},
"area": 25000,
"mass": {
"#.": "Number",
"#v": [
"Infinity"
]
},
"inverseMass": 0,
"inertia": {
"#.": "Number",
"#v": [
"Infinity"
]
},
"inverseInertia": 0,
"parent": {
"#": 90
},
"sleepCounter": 0
},
[
{
"#": 90
}
],
[
{
"#": 93
},
{
"#": 94
},
{
"#": 95
},
{
"#": 96
}
],
{
"x": 150,
"y": 275,
"index": 0,
"body": {
"#": 90
},
"isInternal": false
},
{
"x": 650,
"y": 275,
"index": 1,
"body": {
"#": 90
},
"isInternal": false
},
{
"x": 650,
"y": 325,
"index": 2,
"body": {
"#": 90
},
"isInternal": false
},
{
"x": 150,
"y": 325,
"index": 3,
"body": {
"#": 90
},
"isInternal": false
},
{
"x": 400,
"y": 300
},
{
"x": 0,
"y": 0
},
{
"x": 0,
"y": 0
},
{
"x": 0,
"y": 0,
"angle": 0
},
{
"x": 0,
"y": 0
},
{
"category": 1,
"mask": 4294967295,
"group": 0
},
{
"visible": true,
"opacity": 1,
"sprite": {
"#": 104
},
"lineWidth": 1.5,
"strokeStyle": "#C44D58",
"fillStyle": "transparent"
},
{
"xScale": 1,
"yScale": 1,
"xOffset": 0.5,
"yOffset": 0.5
},
{
"min": {
"#": 106
},
"max": {
"#": 107
}
},
{
"x": 150,
"y": 275
},
{
"x": 650,
"y": 325
},
{
"x": 400,
"y": 300
},
[
{
"#": 110
},
{
"#": 111
}
],
{
"x": 0,
"y": 1
},
{
"x": -1,
"y": 0
},
{
"id": 5,
"type": "body",
"label": "Circle Body",
"parts": {
"#": 113
},
"angle": 0,
"vertices": {
"#": 114
},
"position": {
"#": 141
},
"force": {
"#": 142
},
"torque": 0,
"positionImpulse": {
"#": 143
},
"constraintImpulse": {
"#": 144
},
"totalContacts": 0,
"speed": 0,
"angularSpeed": 0,
"velocity": {
"#": 145
},
"angularVelocity": 0,
"isSensor": false,
"isStatic": false,
"isSleeping": false,
"motion": 0,
"sleepThreshold": 60,
"density": 0.001,
"restitution": 0,
"friction": 0.1,
"frictionStatic": 0.5,
"frictionAir": 0.01,
"collisionFilter": {
"#": 146
},
"slop": 0.05,
"timeScale": 1,
"render": {
"#": 147
},
"circleRadius": 30,
"bounds": {
"#": 149
},
"positionPrev": {
"#": 152
},
"anglePrev": 0,
"axes": {
"#": 153
},
"area": 2799.98416,
"mass": 2.79998,
"inverseMass": 0.35714,
"inertia": 4991.13779,
"inverseInertia": 0.0002,
"parent": {
"#": 112
},
"sleepCounter": 0
},
[
{
"#": 112
}
],
[
{
"#": 115
},
{
"#": 116
},
{
"#": 117
},
{
"#": 118
},
{
"#": 119
},
{
"#": 120
},
{
"#": 121
},
{
"#": 122
},
{
"#": 123
},
{
"#": 124
},
{
"#": 125
},
{
"#": 126
},
{
"#": 127
},
{
"#": 128
},
{
"#": 129
},
{
"#": 130
},
{
"#": 131
},
{
"#": 132
},
{
"#": 133
},
{
"#": 134
},
{
"#": 135
},
{
"#": 136
},
{
"#": 137
},
{
"#": 138
},
{
"#": 139
},
{
"#": 140
}
],
{
"x": 429.781,
"y": 43.616,
"index": 0,
"body": {
"#": 112
},
"isInternal": false
},
{
"x": 428.05,
"y": 50.638,
"index": 1,
"body": {
"#": 112
},
"isInternal": false
},
{
"x": 424.69,
"y": 57.042,
"index": 2,
"body": {
"#": 112
},
"isInternal": false
},
{
"x": 419.894,
"y": 62.455,
"index": 3,
"body": {
"#": 112
},
"isInternal": false
},
{
"x": 413.942,
"y": 66.564,
"index": 4,
"body": {
"#": 112
},
"isInternal": false
},
{
"x": 407.179,
"y": 69.128,
"index": 5,
"body": {
"#": 112
},
"isInternal": false
},
{
"x": 400,
"y": 70,
"index": 6,
"body": {
"#": 112
},
"isInternal": false
},
{
"x": 392.821,
"y": 69.128,
"index": 7,
"body": {
"#": 112
},
"isInternal": false
},
{
"x": 386.058,
"y": 66.564,
"index": 8,
"body": {
"#": 112
},
"isInternal": false
},
{
"x": 380.106,
"y": 62.455,
"index": 9,
"body": {
"#": 112
},
"isInternal": false
},
{
"x": 375.31,
"y": 57.042,
"index": 10,
"body": {
"#": 112
},
"isInternal": false
},
{
"x": 371.95,
"y": 50.638,
"index": 11,
"body": {
"#": 112
},
"isInternal": false
},
{
"x": 370.219,
"y": 43.616,
"index": 12,
"body": {
"#": 112
},
"isInternal": false
},
{
"x": 370.219,
"y": 36.384,
"index": 13,
"body": {
"#": 112
},
"isInternal": false
},
{
"x": 371.95,
"y": 29.362,
"index": 14,
"body": {
"#": 112
},
"isInternal": false
},
{
"x": 375.31,
"y": 22.958,
"index": 15,
"body": {
"#": 112
},
"isInternal": false
},
{
"x": 380.106,
"y": 17.545,
"index": 16,
"body": {
"#": 112
},
"isInternal": false
},
{
"x": 386.058,
"y": 13.436,
"index": 17,
"body": {
"#": 112
},
"isInternal": false
},
{
"x": 392.821,
"y": 10.872,
"index": 18,
"body": {
"#": 112
},
"isInternal": false
},
{
"x": 400,
"y": 10,
"index": 19,
"body": {
"#": 112
},
"isInternal": false
},
{
"x": 407.179,
"y": 10.872,
"index": 20,
"body": {
"#": 112
},
"isInternal": false
},
{
"x": 413.942,
"y": 13.436,
"index": 21,
"body": {
"#": 112
},
"isInternal": false
},
{
"x": 419.894,
"y": 17.545,
"index": 22,
"body": {
"#": 112
},
"isInternal": false
},
{
"x": 424.69,
"y": 22.958,
"index": 23,
"body": {
"#": 112
},
"isInternal": false
},
{
"x": 428.05,
"y": 29.362,
"index": 24,
"body": {
"#": 112
},
"isInternal": false
},
{
"x": 429.781,
"y": 36.384,
"index": 25,
"body": {
"#": 112
},
"isInternal": false
},
{
"x": 400,
"y": 40
},
{
"x": 0,
"y": 0
},
{
"x": 0,
"y": 0
},
{
"x": 0,
"y": 0,
"angle": 0
},
{
"x": 0,
"y": 0
},
{
"category": 1,
"mask": 4294967295,
"group": 0
},
{
"visible": true,
"opacity": 1,
"sprite": {
"#": 148
},
"lineWidth": 1.5,
"strokeStyle": "#C7F464",
"fillStyle": "transparent"
},
{
"xScale": 1,
"yScale": 1,
"xOffset": 0.5,
"yOffset": 0.5
},
{
"min": {
"#": 150
},
"max": {
"#": 151
}
},
{
"x": 370.219,
"y": 10
},
{
"x": 429.781,
"y": 70
},
{
"x": 400,
"y": 40
},
[
{
"#": 154
},
{
"#": 155
},
{
"#": 156
},
{
"#": 157
},
{
"#": 158
},
{
"#": 159
},
{
"#": 160
},
{
"#": 161
},
{
"#": 162
},
{
"#": 163
},
{
"#": 164
},
{
"#": 165
},
{
"#": 166
}
],
{
"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
},
[],
[],
{
"x": 0,
"y": 1,
"scale": 0.001
},
{
"min": {
"#": 171
},
"max": {
"#": 172
}
},
{
"x": {
"#.": "Number",
"#v": [
"-Infinity"
]
},
"y": {
"#.": "Number",
"#v": [
"-Infinity"
]
}
},
{
"x": {
"#.": "Number",
"#v": [
"Infinity"
]
},
"y": {
"#.": "Number",
"#v": [
"Infinity"
]
}
}
]