summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2025-02-19 22:21:44 +0100
committermetamuffin <metamuffin@disroot.org>2025-02-19 22:21:44 +0100
commitee198b516bad5db9312dde3749bf864d6c7079b1 (patch)
treee1fb544e5c78a3cd7c6fff58642522be5ccef7e0 /doc
parent6edc755bc040bc67ad3cd88fa694e9d29daf4a3b (diff)
downloadweareserver-ee198b516bad5db9312dde3749bf864d6c7079b1.tar
weareserver-ee198b516bad5db9312dde3749bf864d6c7079b1.tar.bz2
weareserver-ee198b516bad5db9312dde3749bf864d6c7079b1.tar.zst
animations
Diffstat (limited to 'doc')
-rw-r--r--doc/resources.md30
1 files changed, 13 insertions, 17 deletions
diff --git a/doc/resources.md b/doc/resources.md
index a7683e3..761a6fa 100644
--- a/doc/resources.md
+++ b/doc/resources.md
@@ -180,29 +180,25 @@ inherited. Attribute values are zipped similar to vertex attributes.
| Key | Value Type | |
| ---------- | ------------------ | --------- |
+| `name` | `String` | |
| `channel` | `AnimationChannel` | Multi key |
| `duration` | `f32` | |
## AnimationChannel
-| Key | Value Type | |
-| --------------------- | ------------- | - |
-| `t_mesh_translation` | `u32` | |
-| `t_mesh_rotation` | `u32` | |
-| `t_mesh_scale` | `u32` | |
-| `t_mesh_morph_weight` | `u32`, `u32` | |
-| `t_joint_translation` | `u32`, `u32` | |
-| `t_joint_rotation` | `u32`, `u32` | |
-| `t_joint_scale` | `u32`, `u32` | |
-| `t_light_translation` | `u32` | |
-| `time` | `Res<[f32]>` | |
-| `value` | `Res<[Vec3]>` | |
+| Key | Value Type | Indexes | `value` components |
+| --------------------- | ------------ | ----------- | ------------------ |
+| `t_mesh_translation` | `u32` | mesh | 3 |
+| `t_mesh_rotation` | `u32` | mesh | 4 |
+| `t_mesh_scale` | `u32` | mesh | 3 |
+| `t_mesh_morph_weight` | `u32`, `u32` | mesh, morph | 1 |
+| `t_joint_translation` | `u32`, `u32` | arma, joint | 3 |
+| `t_joint_rotation` | `u32`, `u32` | arma, joint | 4 |
+| `t_joint_scale` | `u32`, `u32` | arma, joint | 3 |
+| `t_light_translation` | `u32` | mesh | 3 |
+| `time` | `Res<[f32]>` | | |
+| `value` | `Res<[f32]>` | | |
-- **Joint targets**: Index into armature array of the prefab and index into
- joint array of that armature.
-- **Mesh targets**: Index into mesh array of the prefab.
-- **Mesh morph targets**: Index into mesh array of the prefab and index into
- morph targets array of that mesh.
- **Time & Values**: Time and value arrays contain corresponding elements. Every
point is a keyframe and lineraly interpolated by default.