mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-11-23 10:59:45 +00:00
update doc/*/scripting/ecs.md, doc/*/scripting/builtins/libgfx-skeletons.md
This commit is contained in:
parent
01a0215903
commit
ddf8395d85
4 changed files with 14 additions and 0 deletions
|
|
@ -26,6 +26,10 @@ skeleton:get_matrix(index: int) -> mat4
|
||||||
-- Sets the transformation matrix of the bone with the specified index
|
-- Sets the transformation matrix of the bone with the specified index
|
||||||
skeleton:set_matrix(index: int, matrix: mat4)
|
skeleton:set_matrix(index: int, matrix: mat4)
|
||||||
|
|
||||||
|
-- Returns the offset of the bone with the specified index relative to its parent
|
||||||
|
-- (as defined in the skeleton config)
|
||||||
|
skeleton:get_bone_offset(index: int) -> vec3
|
||||||
|
|
||||||
-- Returns the texture by key (dynamically assigned textures - '$name')
|
-- Returns the texture by key (dynamically assigned textures - '$name')
|
||||||
skeleton:get_texture(key: str) -> str
|
skeleton:get_texture(key: str) -> str
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -172,6 +172,9 @@ rig:get_matrix(index: int) -> mat4
|
||||||
-- Sets the bone transformation matrix at the specified index
|
-- Sets the bone transformation matrix at the specified index
|
||||||
rig:set_matrix(index: int, matrix: mat4)
|
rig:set_matrix(index: int, matrix: mat4)
|
||||||
|
|
||||||
|
-- Returns the bone offset relative to its parent (from the skeleton config)
|
||||||
|
rig:get_bone_offset(index: int) -> vec3
|
||||||
|
|
||||||
-- Returns the texture by key (dynamically assigned textures - '$name')
|
-- Returns the texture by key (dynamically assigned textures - '$name')
|
||||||
rig:get_texture(key: str) -> str
|
rig:get_texture(key: str) -> str
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -27,6 +27,10 @@ skeleton:get_matrix(index: int) -> mat4
|
||||||
-- Устанавливает матрицу трансформации кости с указанным индексом
|
-- Устанавливает матрицу трансформации кости с указанным индексом
|
||||||
skeleton:set_matrix(index: int, matrix: mat4)
|
skeleton:set_matrix(index: int, matrix: mat4)
|
||||||
|
|
||||||
|
-- Возвращает смещение кости с указанным индексом относительно родительской
|
||||||
|
-- (как задано в конфиге скелета)
|
||||||
|
skeleton:get_bone_offset(index: int) -> vec3
|
||||||
|
|
||||||
-- Возвращает текстуру по ключу (динамически назначаемые текстуры - '$имя')
|
-- Возвращает текстуру по ключу (динамически назначаемые текстуры - '$имя')
|
||||||
skeleton:get_texture(key: string) -> string
|
skeleton:get_texture(key: string) -> string
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -161,6 +161,9 @@ rig:get_matrix(index: int) -> mat4
|
||||||
-- Устанавливает матрицу трансформации кости с указанным индексом
|
-- Устанавливает матрицу трансформации кости с указанным индексом
|
||||||
rig:set_matrix(index: int, matrix: mat4)
|
rig:set_matrix(index: int, matrix: mat4)
|
||||||
|
|
||||||
|
-- Возвращает смещение кости относительно родительской (из конфига скелета)
|
||||||
|
rig:get_bone_offset(index: int) -> vec3
|
||||||
|
|
||||||
-- Возвращает текстуру по ключу (динамически назначаемые текстуры - '$имя')
|
-- Возвращает текстуру по ключу (динамически назначаемые текстуры - '$имя')
|
||||||
rig:get_texture(key: str) -> str
|
rig:get_texture(key: str) -> str
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue