mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-11-20 17:39:46 +00:00
Merge pull request #1052 from MihailRis/add-sksleton-get-bone-offset
add skeleton:get_bone_offset
This commit is contained in:
commit
3edb96e291
7 changed files with 34 additions and 5 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue