846 lines
17 KiB
JSON
846 lines
17 KiB
JSON
{
|
|
"format": "faset.scene",
|
|
"version": 1,
|
|
"id": "example-collect-3d-scene",
|
|
"name": "Collect & Escape 3D \u2014 WASD / Space / E reset",
|
|
"dimension": 3,
|
|
"simulation": {
|
|
"fixed_delta": 0.016666666666666666,
|
|
"max_catch_up_ticks": 4,
|
|
"physics_substeps": 4,
|
|
"gravity": [
|
|
0,
|
|
-9.81,
|
|
0
|
|
]
|
|
},
|
|
"entities": [
|
|
{
|
|
"id": "floor",
|
|
"name": "Room floor",
|
|
"parent": null,
|
|
"components": [
|
|
{
|
|
"id": "floor-faset.transform",
|
|
"type": "faset.transform",
|
|
"version": 1,
|
|
"fields": {
|
|
"position": [
|
|
0,
|
|
-0.75,
|
|
0
|
|
],
|
|
"rotation": [
|
|
0,
|
|
0,
|
|
0
|
|
],
|
|
"scale": [
|
|
18,
|
|
0.5,
|
|
12
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"id": "floor-faset.mesh",
|
|
"type": "faset.mesh",
|
|
"version": 1,
|
|
"fields": {
|
|
"asset": "builtin:cube",
|
|
"color": [
|
|
0.2,
|
|
0.3,
|
|
0.39,
|
|
1
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"id": "floor-faset.rigid_body_3d",
|
|
"type": "faset.rigid_body_3d",
|
|
"version": 1,
|
|
"fields": {
|
|
"body_type": "static",
|
|
"half_extents": [
|
|
0.5,
|
|
0.5,
|
|
0.5
|
|
],
|
|
"density": 1,
|
|
"friction": 0.4,
|
|
"restitution": 0,
|
|
"gravity_scale": 1
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "platform",
|
|
"name": "Jump platform",
|
|
"parent": null,
|
|
"components": [
|
|
{
|
|
"id": "platform-faset.transform",
|
|
"type": "faset.transform",
|
|
"version": 1,
|
|
"fields": {
|
|
"position": [
|
|
-1,
|
|
0,
|
|
0
|
|
],
|
|
"rotation": [
|
|
0,
|
|
0,
|
|
0
|
|
],
|
|
"scale": [
|
|
2,
|
|
1,
|
|
2
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"id": "platform-faset.mesh",
|
|
"type": "faset.mesh",
|
|
"version": 1,
|
|
"fields": {
|
|
"asset": "builtin:cube",
|
|
"color": [
|
|
0.4,
|
|
0.45,
|
|
0.55,
|
|
1
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"id": "platform-faset.rigid_body_3d",
|
|
"type": "faset.rigid_body_3d",
|
|
"version": 1,
|
|
"fields": {
|
|
"body_type": "static",
|
|
"half_extents": [
|
|
0.5,
|
|
0.5,
|
|
0.5
|
|
],
|
|
"density": 1,
|
|
"friction": 0.4,
|
|
"restitution": 0,
|
|
"gravity_scale": 1
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "back-wall",
|
|
"name": "Back wall",
|
|
"parent": null,
|
|
"components": [
|
|
{
|
|
"id": "back-wall-faset.transform",
|
|
"type": "faset.transform",
|
|
"version": 1,
|
|
"fields": {
|
|
"position": [
|
|
0,
|
|
0,
|
|
-6
|
|
],
|
|
"rotation": [
|
|
0,
|
|
0,
|
|
0
|
|
],
|
|
"scale": [
|
|
18,
|
|
1,
|
|
0.4
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"id": "back-wall-faset.mesh",
|
|
"type": "faset.mesh",
|
|
"version": 1,
|
|
"fields": {
|
|
"asset": "builtin:cube",
|
|
"color": [
|
|
0.2,
|
|
0.3,
|
|
0.39,
|
|
1
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"id": "back-wall-faset.rigid_body_3d",
|
|
"type": "faset.rigid_body_3d",
|
|
"version": 1,
|
|
"fields": {
|
|
"body_type": "static",
|
|
"half_extents": [
|
|
0.5,
|
|
0.5,
|
|
0.5
|
|
],
|
|
"density": 1,
|
|
"friction": 0.4,
|
|
"restitution": 0,
|
|
"gravity_scale": 1
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "left-wall",
|
|
"name": "Left wall",
|
|
"parent": null,
|
|
"components": [
|
|
{
|
|
"id": "left-wall-faset.transform",
|
|
"type": "faset.transform",
|
|
"version": 1,
|
|
"fields": {
|
|
"position": [
|
|
-9,
|
|
0,
|
|
0
|
|
],
|
|
"rotation": [
|
|
0,
|
|
0,
|
|
0
|
|
],
|
|
"scale": [
|
|
0.4,
|
|
1,
|
|
12
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"id": "left-wall-faset.mesh",
|
|
"type": "faset.mesh",
|
|
"version": 1,
|
|
"fields": {
|
|
"asset": "builtin:cube",
|
|
"color": [
|
|
0.2,
|
|
0.3,
|
|
0.39,
|
|
1
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"id": "left-wall-faset.rigid_body_3d",
|
|
"type": "faset.rigid_body_3d",
|
|
"version": 1,
|
|
"fields": {
|
|
"body_type": "static",
|
|
"half_extents": [
|
|
0.5,
|
|
0.5,
|
|
0.5
|
|
],
|
|
"density": 1,
|
|
"friction": 0.4,
|
|
"restitution": 0,
|
|
"gravity_scale": 1
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "right-wall",
|
|
"name": "Right wall",
|
|
"parent": null,
|
|
"components": [
|
|
{
|
|
"id": "right-wall-faset.transform",
|
|
"type": "faset.transform",
|
|
"version": 1,
|
|
"fields": {
|
|
"position": [
|
|
9,
|
|
0,
|
|
0
|
|
],
|
|
"rotation": [
|
|
0,
|
|
0,
|
|
0
|
|
],
|
|
"scale": [
|
|
0.4,
|
|
1,
|
|
12
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"id": "right-wall-faset.mesh",
|
|
"type": "faset.mesh",
|
|
"version": 1,
|
|
"fields": {
|
|
"asset": "builtin:cube",
|
|
"color": [
|
|
0.2,
|
|
0.3,
|
|
0.39,
|
|
1
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"id": "right-wall-faset.rigid_body_3d",
|
|
"type": "faset.rigid_body_3d",
|
|
"version": 1,
|
|
"fields": {
|
|
"body_type": "static",
|
|
"half_extents": [
|
|
0.5,
|
|
0.5,
|
|
0.5
|
|
],
|
|
"density": 1,
|
|
"friction": 0.4,
|
|
"restitution": 0,
|
|
"gravity_scale": 1
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "front-wall",
|
|
"name": "Front wall",
|
|
"parent": null,
|
|
"components": [
|
|
{
|
|
"id": "front-wall-faset.transform",
|
|
"type": "faset.transform",
|
|
"version": 1,
|
|
"fields": {
|
|
"position": [
|
|
0,
|
|
0,
|
|
6
|
|
],
|
|
"rotation": [
|
|
0,
|
|
0,
|
|
0
|
|
],
|
|
"scale": [
|
|
18,
|
|
1,
|
|
0.4
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"id": "front-wall-faset.mesh",
|
|
"type": "faset.mesh",
|
|
"version": 1,
|
|
"fields": {
|
|
"asset": "builtin:cube",
|
|
"color": [
|
|
0.2,
|
|
0.3,
|
|
0.39,
|
|
1
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"id": "front-wall-faset.rigid_body_3d",
|
|
"type": "faset.rigid_body_3d",
|
|
"version": 1,
|
|
"fields": {
|
|
"body_type": "static",
|
|
"half_extents": [
|
|
0.5,
|
|
0.5,
|
|
0.5
|
|
],
|
|
"density": 1,
|
|
"friction": 0.4,
|
|
"restitution": 0,
|
|
"gravity_scale": 1
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "token_1",
|
|
"name": "Gold pickup 1",
|
|
"parent": null,
|
|
"components": [
|
|
{
|
|
"id": "token_1-faset.transform",
|
|
"type": "faset.transform",
|
|
"version": 1,
|
|
"fields": {
|
|
"position": [
|
|
-5,
|
|
0.35,
|
|
-3
|
|
],
|
|
"rotation": [
|
|
0,
|
|
0,
|
|
0
|
|
],
|
|
"scale": [
|
|
0.5,
|
|
0.5,
|
|
0.5
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"id": "token_1-faset.mesh",
|
|
"type": "faset.mesh",
|
|
"version": 1,
|
|
"fields": {
|
|
"asset": "builtin:cube",
|
|
"color": [
|
|
1,
|
|
0.68,
|
|
0.14,
|
|
1
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"id": "token_1-example.beacon",
|
|
"type": "example.beacon",
|
|
"version": 1,
|
|
"fields": {
|
|
"speed": 1.0
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "token_2",
|
|
"name": "Gold pickup 2",
|
|
"parent": null,
|
|
"components": [
|
|
{
|
|
"id": "token_2-faset.transform",
|
|
"type": "faset.transform",
|
|
"version": 1,
|
|
"fields": {
|
|
"position": [
|
|
-1,
|
|
1.35,
|
|
0
|
|
],
|
|
"rotation": [
|
|
0,
|
|
0,
|
|
0
|
|
],
|
|
"scale": [
|
|
0.5,
|
|
0.5,
|
|
0.5
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"id": "token_2-faset.mesh",
|
|
"type": "faset.mesh",
|
|
"version": 1,
|
|
"fields": {
|
|
"asset": "builtin:cube",
|
|
"color": [
|
|
1,
|
|
0.68,
|
|
0.14,
|
|
1
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"id": "token_2-example.beacon",
|
|
"type": "example.beacon",
|
|
"version": 1,
|
|
"fields": {
|
|
"speed": 1.25
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "token_3",
|
|
"name": "Gold pickup 3",
|
|
"parent": null,
|
|
"components": [
|
|
{
|
|
"id": "token_3-faset.transform",
|
|
"type": "faset.transform",
|
|
"version": 1,
|
|
"fields": {
|
|
"position": [
|
|
3,
|
|
0.35,
|
|
3
|
|
],
|
|
"rotation": [
|
|
0,
|
|
0,
|
|
0
|
|
],
|
|
"scale": [
|
|
0.5,
|
|
0.5,
|
|
0.5
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"id": "token_3-faset.mesh",
|
|
"type": "faset.mesh",
|
|
"version": 1,
|
|
"fields": {
|
|
"asset": "builtin:cube",
|
|
"color": [
|
|
1,
|
|
0.68,
|
|
0.14,
|
|
1
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"id": "token_3-example.beacon",
|
|
"type": "example.beacon",
|
|
"version": 1,
|
|
"fields": {
|
|
"speed": 1.5
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "gate",
|
|
"name": "Collect all three to open",
|
|
"parent": null,
|
|
"components": [
|
|
{
|
|
"id": "gate-faset.transform",
|
|
"type": "faset.transform",
|
|
"version": 1,
|
|
"fields": {
|
|
"position": [
|
|
6,
|
|
1,
|
|
-4
|
|
],
|
|
"rotation": [
|
|
0,
|
|
0,
|
|
0
|
|
],
|
|
"scale": [
|
|
0.45,
|
|
3,
|
|
3
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"id": "gate-faset.mesh",
|
|
"type": "faset.mesh",
|
|
"version": 1,
|
|
"fields": {
|
|
"asset": "builtin:cube",
|
|
"color": [
|
|
0.9,
|
|
0.23,
|
|
0.16,
|
|
1
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"id": "gate-faset.rigid_body_3d",
|
|
"type": "faset.rigid_body_3d",
|
|
"version": 1,
|
|
"fields": {
|
|
"body_type": "static",
|
|
"half_extents": [
|
|
0.5,
|
|
0.5,
|
|
0.5
|
|
],
|
|
"density": 1,
|
|
"friction": 0.4,
|
|
"restitution": 0,
|
|
"gravity_scale": 1
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "goal",
|
|
"name": "Green exit",
|
|
"parent": null,
|
|
"components": [
|
|
{
|
|
"id": "goal-faset.transform",
|
|
"type": "faset.transform",
|
|
"version": 1,
|
|
"fields": {
|
|
"position": [
|
|
7.5,
|
|
0.15,
|
|
-4
|
|
],
|
|
"rotation": [
|
|
0,
|
|
0,
|
|
0
|
|
],
|
|
"scale": [
|
|
0.85,
|
|
0.3,
|
|
0.85
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"id": "goal-faset.mesh",
|
|
"type": "faset.mesh",
|
|
"version": 1,
|
|
"fields": {
|
|
"asset": "builtin:cube",
|
|
"color": [
|
|
0.15,
|
|
0.9,
|
|
0.47,
|
|
1
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "win_marker",
|
|
"name": "Victory marker",
|
|
"parent": null,
|
|
"components": [
|
|
{
|
|
"id": "win_marker-faset.transform",
|
|
"type": "faset.transform",
|
|
"version": 1,
|
|
"fields": {
|
|
"position": [
|
|
7.5,
|
|
3.0,
|
|
-4
|
|
],
|
|
"rotation": [
|
|
0,
|
|
0,
|
|
0
|
|
],
|
|
"scale": [
|
|
1,
|
|
1,
|
|
1
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"id": "win_marker-faset.mesh",
|
|
"type": "faset.mesh",
|
|
"version": 1,
|
|
"fields": {
|
|
"asset": "builtin:cube",
|
|
"color": [
|
|
1,
|
|
0.68,
|
|
0.14,
|
|
1
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"id": "win_marker-example.beacon",
|
|
"type": "example.beacon",
|
|
"version": 1,
|
|
"fields": {
|
|
"speed": 2
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "player",
|
|
"name": "Blue player block",
|
|
"parent": null,
|
|
"components": [
|
|
{
|
|
"id": "player-faset.transform",
|
|
"type": "faset.transform",
|
|
"version": 1,
|
|
"fields": {
|
|
"position": [
|
|
-6,
|
|
0,
|
|
3
|
|
],
|
|
"rotation": [
|
|
0,
|
|
0,
|
|
0
|
|
],
|
|
"scale": [
|
|
1,
|
|
1,
|
|
1
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"id": "player-faset.mesh",
|
|
"type": "faset.mesh",
|
|
"version": 1,
|
|
"fields": {
|
|
"asset": "builtin:cube",
|
|
"color": [
|
|
0.12,
|
|
0.65,
|
|
1,
|
|
1
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"id": "player-faset.rigid_body_3d",
|
|
"type": "faset.rigid_body_3d",
|
|
"version": 1,
|
|
"fields": {
|
|
"body_type": "dynamic",
|
|
"half_extents": [
|
|
0.5,
|
|
0.5,
|
|
0.5
|
|
],
|
|
"density": 1,
|
|
"friction": 0,
|
|
"restitution": 0,
|
|
"gravity_scale": 1
|
|
}
|
|
},
|
|
{
|
|
"id": "player-example.collector_3d",
|
|
"type": "example.collector_3d",
|
|
"version": 1,
|
|
"fields": {
|
|
"speed": 4,
|
|
"jump_speed": 6,
|
|
"gate": "gate",
|
|
"goal": "goal",
|
|
"win_marker": "win_marker",
|
|
"token_1": "token_1",
|
|
"token_2": "token_2",
|
|
"token_3": "token_3"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "camera",
|
|
"name": "Room camera",
|
|
"parent": null,
|
|
"components": [
|
|
{
|
|
"id": "camera-faset.transform",
|
|
"type": "faset.transform",
|
|
"version": 1,
|
|
"fields": {
|
|
"position": [
|
|
11,
|
|
13,
|
|
18
|
|
],
|
|
"rotation": [
|
|
-0.5522890193034389,
|
|
0.5485494024505281,
|
|
0
|
|
],
|
|
"scale": [
|
|
1,
|
|
1,
|
|
1
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"id": "camera-faset.camera",
|
|
"type": "faset.camera",
|
|
"version": 1,
|
|
"fields": {
|
|
"fov": 50,
|
|
"near": 0.1,
|
|
"far": 200
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "blender-exit-arch",
|
|
"name": "Blender exit arch",
|
|
"parent": null,
|
|
"components": [
|
|
{
|
|
"id": "blender-exit-arch-pose",
|
|
"type": "faset.transform",
|
|
"version": 1,
|
|
"fields": {
|
|
"position": [
|
|
7.4,
|
|
-0.5,
|
|
-4
|
|
],
|
|
"rotation": [
|
|
0,
|
|
0,
|
|
0
|
|
],
|
|
"scale": [
|
|
1,
|
|
1,
|
|
1
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"id": "blender-exit-arch-mesh",
|
|
"type": "faset.mesh",
|
|
"version": 1,
|
|
"fields": {
|
|
"asset": "5832763b-3ed0-44d6-9088-0b524f196a91",
|
|
"primitive": "asset",
|
|
"color": [
|
|
1,
|
|
1,
|
|
1,
|
|
1
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"instances": []
|
|
}
|