feature: bone model overriding
This commit is contained in:
@@ -118,6 +118,10 @@ local rig = entity.skeleton
|
||||
-- Returns the model name assigned to the bone at the specified index
|
||||
rig:get_model(index: int) -> str
|
||||
|
||||
-- Reassigns the bone model at the specified index
|
||||
-- Resets to original if name is not specified
|
||||
rig:set_model(index: int, name: str)
|
||||
|
||||
-- Returns the bone transformation matrix at the specified index
|
||||
rig:get_matrix(index: int) -> mat4
|
||||
-- Sets the bone transformation matrix at the specified index
|
||||
|
||||
@@ -119,6 +119,10 @@ local rig = entity.skeleton
|
||||
-- Возвращает имя модели, назначенной на кость с указанным индексом
|
||||
rig:get_model(index: int) -> str
|
||||
|
||||
-- Переназначает модель кости с указанным индексом
|
||||
-- Сбрасывает до изначальной, если не указывать имя
|
||||
rig:set_model(index: int, name: str)
|
||||
|
||||
-- Возвращает матрицу трансформации кости с указанным индексом
|
||||
rig:get_matrix(index: int) -> mat4
|
||||
-- Устанавливает матрицу трансформации кости с указанным индексом
|
||||
|
||||
Reference in New Issue
Block a user