natiny_model_get_bone_at
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
NatinyEntity root = natiny_model_get_bone_at(hero, 0);