Skip to content

Commit

Permalink
Add world spec yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
HMasataka committed Jul 18, 2024
1 parent 604149f commit ae7f137
Show file tree
Hide file tree
Showing 2 changed files with 95 additions and 0 deletions.
50 changes: 50 additions & 0 deletions package/01-sutera-world-spec.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# ワールド

現在ワールドは静的なオブジェクトに限定されています

```yaml
metadata:
type: [email protected]
name: See2et's room「しぜるーむ」
version: 0.2.0 # ワールド作成者が定義するバージョン
specs:
spawn_point:
x:
y:
z:
border: # 越えたらリスポーン
x_min:
x_max:
y_min:
y_max:
z_min:
z_max:
objects: # 配列
- name: sofa
model:
type: gltf
path: models/sofa.gltf
material:
type: sbsar
path: materials/sofa.sbsar
location:
x:
y:
z:
w:
scale:
x:
y:
z:
physics:
colliders:
- type: box   
gravity:
mass: 5000
- name: ball # 最小構成
model:
type: sphere # 基本図形はgltfなしで可能
material:
type: diffuse_bsdf # 単色もファイルなしで可能
color: 0x6833cf
```
45 changes: 45 additions & 0 deletions package/world.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
```yaml
metadata:
type: [email protected]
name: See2et's room「しぜるーむ」
version: 0.2.0 # ワールド作成者が定義するバージョン
specs:
spawn_point:
x:
y:
z:
border: # 越えたらリスポーン
x_min:
x_max:
y_min:
y_max:
z_min:
z_max:
objects: # 配列
- name: sofa
model:
type: gltf
path: models/sofa.gltf
material:
type: sbsar
path: materials/sofa.sbsar
location:
x:
y:
z:
w:
scale:
x:
y:
z:
physics:
colliders:
- type: box   
gravity:
mass: 5000
- name: ball # 最小構成
model:
type: sphere # 基本図形はgltfなしで可能
material:
type: diffuse_bsdf # 単色もファイルなしで可能
color: 0x6833cf

0 comments on commit ae7f137

Please sign in to comment.