Skip to content

Instantly share code, notes, and snippets.

@phated
Created February 11, 2013 03:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save phated/4752190 to your computer and use it in GitHub Desktop.
Save phated/4752190 to your computer and use it in GitHub Desktop.
Joints Test - Frozen Editor JSON
{
"entities": [
{
"x": 1,
"y": 238,
"halfWidth": 12.5,
"halfHeight": 256,
"staticBody": true,
"zone": false,
"type": "Rectangle",
"id": 0
},
{
"x": 700,
"y": 238,
"halfWidth": 12.5,
"halfHeight": 256,
"staticBody": true,
"zone": false,
"type": "Rectangle",
"id": 1
},
{
"x": 351,
"y": 437.5,
"halfWidth": 350,
"halfHeight": 9.5,
"staticBody": true,
"zone": false,
"type": "Rectangle",
"id": 2
},
{
"x": 353,
"y": 4,
"halfWidth": 348,
"halfHeight": 13,
"staticBody": true,
"zone": false,
"type": "Rectangle",
"id": 3
},
{
"x": 92.5,
"y": 94.5,
"halfWidth": 53.5,
"halfHeight": 26.5,
"staticBody": false,
"zone": false,
"type": "Rectangle",
"fillStyle": "rgba(255,0,0,0.4)",
"restitution": 1.1,
"id": "car"
},
{
"x": 75,
"y": 111,
"radius": 39.81205847478876,
"staticBody": false,
"zone": false,
"type": "Circle",
"fillStyle": "rgba(255,0,0,0.4)",
"restitution": 1.1,
"id": "wheel"
},
{
"x": 314.5,
"y": 145,
"halfWidth": 26,
"halfHeight": 26,
"staticBody": false,
"zone": false,
"type": "Rectangle",
"fillStyle": "rgba(0,255,0,0.4)",
"restitution": 1.1,
"id": "d1"
},
{
"x": 317.5,
"y": 280,
"halfWidth": 26,
"halfHeight": 26,
"staticBody": false,
"zone": false,
"type": "Rectangle",
"fillStyle": "rgba(0,255,0,0.4)",
"restitution": 1.1,
"id": "d2"
},
{
"x": 536,
"y": 140.5,
"halfWidth": 36,
"halfHeight": 18,
"staticBody": false,
"zone": false,
"type": "Rectangle",
"fillStyle": "rgba(0,0,255,0.4)",
"restitution": 1.1,
"id": "p1"
},
{
"x": 541.5,
"y": 283.5,
"halfWidth": 36,
"halfHeight": 18,
"staticBody": false,
"zone": false,
"type": "Rectangle",
"fillStyle": "rgba(0,0,255,0.4)",
"restitution": 1.1,
"id": "p2"
}
],
"joints": [
{
"bodyId1": "wheel",
"bodyId2": "car",
"id": "rev",
"type": "Revolute"
},
{
"bodyId1": "d1",
"bodyId2": "d2",
"id": "dist",
"type": "Distance"
},
{
"bodyId1": "p1",
"bodyId2": "p2",
"id": "pris",
"type": "Prismatic"
}
],
"canvas": {
"height": 440,
"width": 700
},
"backImg": null
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment