RobLoach / RobLoach/raylib-cpp
ModelAnimation.Load can load only single animation
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 960
- Forks
- 120
- Avg merge
- 10m
- Merged PRs (30d)
- 1
Description
I'm a little confused, I'm using *ModelAnimation->Load like so:
m_pWeaponAnimations->Load("res/Shovel.glb");
and I can see all my animations in the console output:
INFO: MODEL: [res/Shovel.glb] Loaded animation: AtkBW (50 frames, 0.833333s)
INFO: MODEL: [res/Shovel.glb] Loaded animation: AtkFW (50 frames, 0.833333s)
INFO: MODEL: [res/Shovel.glb] Loaded animation: AtkL (50 frames, 0.833333s)
INFO: MODEL: [res/Shovel.glb] Loaded animation: AtkR (50 frames, 0.833333s)
INFO: MODEL: [res/Shovel.glb] Loaded animation: Idle (50 frames, 0.833333s)
But I can't figure out if ModelAnimation can expose multiple animations the same way the raylib gltf example does?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with ModelAnimation::Load and compare its exposed animation access with the raylib gltf example mentioned in the issue. Confirm how the animations reported for res/Shovel.glb are represented and define completion as making all loaded animations accessible rather than only one.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- game-dev
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100