From 2b50e85cdca15146117da0c198db77a472f2897c Mon Sep 17 00:00:00 2001 From: MihailRis Date: Sun, 21 Jul 2024 21:54:30 +0300 Subject: [PATCH] update doc/*/rigging.md --- doc/en/rigging.md | 8 +++++--- doc/ru/rigging.md | 2 ++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/doc/en/rigging.md b/doc/en/rigging.md index 9b7a033c..4b69b576 100644 --- a/doc/en/rigging.md +++ b/doc/en/rigging.md @@ -16,6 +16,7 @@ A skeleton file has the following structure: "root": { "name": "name", "model": "model_name", + "offset": [x, y, z], "nodes": [ ... ] @@ -24,9 +25,10 @@ A skeleton file has the following structure: ``` - root - root element -- name - name of the element to get the index (field optional) -- model - name of the model to display the element (field optional) -- nodes - list of elements - descendants, which are affected by the matrix of this element (the field is optional) +- name - name of the element to get the index (optional field) +- model - name of the model to display the element (optional field) +- offset - element offset relative to the parent (optional field) +- nodes - list of elements - sub-elements, which are affected by the matrix of this element (optional field) At the moment, positioning, rotation, scaling is done through scripting, as well as animation. diff --git a/doc/ru/rigging.md b/doc/ru/rigging.md index b9f834b0..86ec0a09 100644 --- a/doc/ru/rigging.md +++ b/doc/ru/rigging.md @@ -16,6 +16,7 @@ "root": { "name": "имя", "model": "имя_модели", + "offset": [x, y, z], "nodes": [ ... ] @@ -26,6 +27,7 @@ - root - корневой элемент - name - имя элемента для получения индекса (поле опционально) - model - имя модели для отображения элемента (поле опционально) +- offset - смещение элемента относительно родителя (поле опционально) - nodes - список элементов - потомков, на которые влияет матрица данного элемента (поле опционально) На данный момент расположение, вращение, масштабирование выполняется через скриптинг, так же как и анимация.