From 249ce84a4138d084c77c7caf40b57adec8582803 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Fri, 10 Jan 2025 18:36:27 +0100 Subject: collider resources --- doc/resources.md | 26 +++++++++++++++++++++----- 1 file changed, 21 insertions(+), 5 deletions(-) (limited to 'doc') 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 | Multi key | -| light | Vec3, Res | Multi key | -| environment | Res | | +| Key | Value Type | | +| ----------- | -------------------------------- | --------- | +| mesh | Matrix3, Vec3, Res | Multi key | +| collider | Matrix3, Vec3, Res | Multi key | +| light | Vec3, Res | Multi key | +| environment | Res | | ## 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, 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 -- cgit v1.2.3-70-g09d2