diff options
| author | jussi | 2023-12-08 22:40:04 +0200 |
|---|---|---|
| committer | jussi | 2023-12-08 22:40:04 +0200 |
| commit | 93b5b2eb37813dd854727c50626131d2631065aa (patch) | |
| tree | e7143833210857cde903a0718be51d00675cc712 /API.md | |
| parent | eb7873be2be3d0ac4808c7416b190888a0e94145 (diff) | |
| download | reilua-enhanced-93b5b2eb37813dd854727c50626131d2631065aa.tar.gz reilua-enhanced-93b5b2eb37813dd854727c50626131d2631065aa.tar.bz2 reilua-enhanced-93b5b2eb37813dd854727c50626131d2631065aa.zip | |
More Model animations management functions.
Diffstat (limited to 'API.md')
| -rw-r--r-- | API.md | 68 |
1 files changed, 65 insertions, 3 deletions
@@ -6605,16 +6605,16 @@ Set model transform matrix > success = RL.SetModelMesh( Model model, int meshId, Mesh mesh ) -Get model mesh. Return as lightuserdata +Set model mesh. - Failure return false - Success return true --- -> success = RL.SetModelMaterial( Model model, int modelMaterialId, Material material ) +> success = RL.SetModelMaterial( Model model, int materialId, Material material ) -Copies material to model material +Set material to model material - Failure return false - Success return true @@ -7057,6 +7057,18 @@ Update model animation pose --- +> RL.UnloadModelAnimation( ModelAnimation animation ) + +Unload animation data + +--- + +> RL.UnloadModelAnimations( ModelAnimation{} animations ) + +Unload animation table data + +--- + > valid = RL.IsModelAnimationValid( Model model, ModelAnimation animation ) Check model animation skeleton match @@ -7065,6 +7077,30 @@ Check model animation skeleton match --- +> success = RL.SetModelAnimationBone( ModelAnimation animation, int boneId, BoneInfo bone ) + +Set modelAnimation bones information (skeleton) + +- Failure return false +- Success return true + +--- + +> success = RL.SetModelAnimationFramePose( ModelAnimation animation, int frame, int boneId, Transform pose ) + +Set modelAnimation bones base transformation (pose) + +- Failure return false +- Success return true + +--- + +> RL.SetModelAnimationName( ModelAnimation animation, string name ) + +Set modelAnimation name + +--- + > boneCount = RL.GetModelAnimationBoneCount( ModelAnimation animation ) Return modelAnimation bone count @@ -7081,6 +7117,32 @@ Return modelAnimation frame count --- +> bone = RL.GetModelAnimationBone( ModelAnimation animation, int boneId ) + +Get modelAnimation bones information (skeleton) + +- Failure return nil +- Success return BoneInfo + +--- + +> pose = RL.GetModelAnimationFramePose( ModelAnimation animation, int frame, int boneId ) + +Get modelAnimation bones base transformation (pose) + +- Failure return nil +- Success return Transform + +--- + +> name = RL.GetModelAnimationName( ModelAnimation animation ) + +Get modelAnimation name + +- Success return string + +--- + ## Model - Collision detection functions --- |
