Merge pull request #1052 from MihailRis/add-sksleton-get-bone-offset

add skeleton:get_bone_offset
This commit is contained in:
MihailRis 2026-10-18 17:52:41 +03:00 • committed by GitHub
commit 3edb96e291
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 34 additions and 5 deletions

View file

@ -26,6 +26,10 @@ skeleton:get_matrix(index: int) -> mat4
-- Sets the transformation matrix of the bone with the specified index
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')
skeleton:get_texture(key: str) -> str

View file

@ -172,6 +172,9 @@ rig:get_matrix(index: int) -> mat4
-- Sets the bone transformation matrix at the specified index
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')
rig:get_texture(key: str) -> str

View file

@ -27,6 +27,10 @@ skeleton:get_matrix(index: int) -> mat4
-- Устанавливает матрицу трансформации кости с указанным индексом
skeleton:set_matrix(index: int, matrix: mat4)
-- Возвращает смещение кости с указанным индексом относительно родительской
-- (как задано в конфиге скелета)
skeleton:get_bone_offset(index: int) -> vec3
-- Возвращает текстуру по ключу (динамически назначаемые текстуры - '$имя')
skeleton:get_texture(key: string) -> string

View file

@ -161,6 +161,9 @@ rig:get_matrix(index: int) -> mat4
-- Устанавливает матрицу трансформации кости с указанным индексом
rig:set_matrix(index: int, matrix: mat4)
-- Возвращает смещение кости относительно родительской (из конфига скелета)
rig:get_bone_offset(index: int) -> vec3
-- Возвращает текстуру по ключу (динамически назначаемые текстуры - '$имя')
rig:get_texture(key: str) -> str