natiny_model_get_bone_weight

C
float natiny_model_get_bone_weight(NatinyModel model, NatinyEntity bone);

Returns how much of a bone the game has taken over from the animation.

Parameters

Name Type Description
model NatinyModel Model handle
bone NatinyEntity Bone entity from natiny_model_get_bone

Returns

Type Description
float The weight, between 0.0f and 1.0f; 0.0f for a bone that is not this model's

Example

C
float weight = natiny_model_get_bone_weight(hero, head);