diff options
author | metamuffin <metamuffin@disroot.org> | 2025-01-10 18:36:27 +0100 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2025-01-10 18:36:27 +0100 |
commit | 249ce84a4138d084c77c7caf40b57adec8582803 (patch) | |
tree | 06140caed19ed23048cc21ae570fab7d87e5e66d /doc | |
parent | 79ab4f7be3c648ac3177c1d039af6ed8f5e44809 (diff) | |
download | weareserver-249ce84a4138d084c77c7caf40b57adec8582803.tar weareserver-249ce84a4138d084c77c7caf40b57adec8582803.tar.bz2 weareserver-249ce84a4138d084c77c7caf40b57adec8582803.tar.zst |
collider resources
Diffstat (limited to 'doc')
-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 |