Skip to content
This repository was archived by the owner on Feb 9, 2026. It is now read-only.

Commit 304c607

Browse files
committed
Add world spec yaml
1 parent 604149f commit 304c607

File tree

2 files changed

+95
-0
lines changed

2 files changed

+95
-0
lines changed

package/01-sutera-world-spec.md

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# ワールド
2+
3+
現在ワールドは静的なオブジェクトに限定されています
4+
5+
```yaml
6+
metadata:
7+
type: sutera-scene@0.1.0
8+
name: sutera world
9+
version: 0.2.0
10+
specs:
11+
spawn_point:
12+
x:
13+
y:
14+
z:
15+
border: # 越えたらリスポーン
16+
x_min:
17+
x_max:
18+
y_min:
19+
y_max:
20+
z_min:
21+
z_max:
22+
objects: # 配列
23+
- name: sofa
24+
model:
25+
type: gltf
26+
path: models/sofa.gltf
27+
material:
28+
type: sbsar
29+
path: materials/sofa.sbsar
30+
location:
31+
x:
32+
y:
33+
z:
34+
w:
35+
scale:
36+
x:
37+
y:
38+
z:
39+
physics:
40+
colliders:
41+
- type: box   
42+
gravity:
43+
mass: 5000
44+
- name: ball # 最小構成
45+
model:
46+
type: sphere # 基本図形はgltfなしで可能
47+
material:
48+
type: diffuse_bsdf # 単色もファイルなしで可能
49+
color: 0x6833cf
50+
```

package/world.yaml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
```yaml
2+
metadata:
3+
type: sutera-scene@0.1.0
4+
name: See2et's room「しぜるーむ」
5+
version: 0.2.0 # ワールド作成者が定義するバージョン
6+
specs:
7+
spawn_point:
8+
x:
9+
y:
10+
z:
11+
border: # 越えたらリスポーン
12+
x_min:
13+
x_max:
14+
y_min:
15+
y_max:
16+
z_min:
17+
z_max:
18+
objects: # 配列
19+
- name: sofa
20+
model:
21+
type: gltf
22+
path: models/sofa.gltf
23+
material:
24+
type: sbsar
25+
path: materials/sofa.sbsar
26+
location:
27+
x:
28+
y:
29+
z:
30+
w:
31+
scale:
32+
x:
33+
y:
34+
z:
35+
physics:
36+
colliders:
37+
- type: box   
38+
gravity:
39+
mass: 5000
40+
- name: ball # 最小構成
41+
model:
42+
type: sphere # 基本図形はgltfなしで可能
43+
material:
44+
type: diffuse_bsdf # 単色もファイルなしで可能
45+
color: 0x6833cf

0 commit comments

Comments
 (0)