From 304c6071b2c44b93f94f9b9d64d8b22aa7d511a8 Mon Sep 17 00:00:00 2001 From: Masataka Hisasue Date: Thu, 18 Jul 2024 20:59:23 +0900 Subject: [PATCH] Add world spec yaml --- package/01-sutera-world-spec.md | 50 +++++++++++++++++++++++++++++++++ package/world.yaml | 45 +++++++++++++++++++++++++++++ 2 files changed, 95 insertions(+) create mode 100644 package/01-sutera-world-spec.md create mode 100644 package/world.yaml diff --git a/package/01-sutera-world-spec.md b/package/01-sutera-world-spec.md new file mode 100644 index 0000000..654e70e --- /dev/null +++ b/package/01-sutera-world-spec.md @@ -0,0 +1,50 @@ +# ワールド + +現在ワールドは静的なオブジェクトに限定されています + +```yaml +metadata: + type: sutera-scene@0.1.0 + name: sutera world + 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 +``` \ No newline at end of file diff --git a/package/world.yaml b/package/world.yaml new file mode 100644 index 0000000..60b4a0c --- /dev/null +++ b/package/world.yaml @@ -0,0 +1,45 @@ +```yaml +metadata: + type: sutera-scene@0.1.0 + 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 \ No newline at end of file