diff options
Diffstat (limited to 'doc/resources.md')
-rw-r--r-- | doc/resources.md | 26 |
1 files changed, 21 insertions, 5 deletions
diff --git a/doc/resources.md b/doc/resources.md index ca30d4c..c11813b 100644 --- a/doc/resources.md +++ b/doc/resources.md @@ -19,11 +19,12 @@ ## Prefab -| Key | Value Type | | -| ----------- | ---------------------------- | --------- | -| mesh | Matrix3, Vec3, Res<MeshPart> | Multi key | -| light | Vec3, Res<LightPart> | Multi key | -| environment | Res<EnvironmentPart> | | +| Key | Value Type | | +| ----------- | -------------------------------- | --------- | +| mesh | Matrix3, Vec3, Res<MeshPart> | Multi key | +| collider | Matrix3, Vec3, Res<ColliderPart> | Multi key | +| light | Vec3, Res<LightPart> | Multi key | +| environment | Res<EnvironmentPart> | | ## MeshPart @@ -106,6 +107,21 @@ white except normals are zero. WebP +## ColliderPart + +Only one key for shape should be set. + +| Key | Value Type | | +| ---------------- | --------------------------------- | ---------------------------------------- | +| friction_kinetic | Float | Friction coeffient for kinectic friction | +| friction_static | Float | Friction coeffient for static friction | +| sh_box | Vec3 | Side lengths | +| sh_sphere | Float | Radius | +| sh_cylinder | Float, Float, Float | Bottom/Top Radius, Height | +| sh_capsule | Float, Float, Float | Bottom/Top Radius, Height | +| sh_convex_hull | Resource<\[Vec3\]> | Convex hull points | +| sh_mesh | Resource<u32>, Resource<\[Vec3\]> | Mesh index + vertex buffer | + [KHR_materials_transmission]: https://github.com/KhronosGroup/glTF/tree/main/extensions/2.0/Khronos/KHR_materials_transmission [KHR_materials_ior]: https://github.com/KhronosGroup/glTF/tree/main/extensions/2.0/Khronos/KHR_materials_ior [KHR_materials_volume]: https://github.com/KhronosGroup/glTF/tree/main/extensions/2.0/Khronos/KHR_materials_volume |