natiny_model_get_bone_at

C
NatinyEntity natiny_model_get_bone_at(NatinyModel model, uint32_t index);

Returns one bone of this model as an entity, by index rather than by name.

Parameters

Name Type Description
model NatinyModel Model handle
index uint32_t Zero-based bone index, below natiny_model_get_bone_count

Returns

Type Description
NatinyEntity Entity handle for the bone, or 0 past the end

Example

C
NatinyEntity root = natiny_model_get_bone_at(hero, 0);