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

Commit 7a684e2

Browse files
committed
Add world spec yaml
1 parent 604149f commit 7a684e2

File tree

2 files changed

+94
-0
lines changed

2 files changed

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

0 commit comments

Comments
 (0)