-
Notifications
You must be signed in to change notification settings - Fork 76
Added models_animation_playing.odin example #138
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added models_animation_playing.odin example #138
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well done. This is a lot nicer out-of-the-box compared to the previous PR!
position := rl.Vector3{ 0.0, 0.0, 0.0 } // Set model position | ||
|
||
// Load animation data | ||
animsCount : i32 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, I missed that 😄 .
if rl.IsKeyDown(.SPACE) { | ||
animFrameCounter += 1 | ||
rl.UpdateModelAnimation(model, anims[0], animFrameCounter) | ||
if (animFrameCounter >= anims[0].frameCount) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
parens
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
C naming convention strikes again 😄 .
…laying # Fixed Conflicts: # .github/workflows/check.yml
Thanks for the feedback, Karl! I hope the naming style looks good. Also, is there a recommended |
Merged, thank you. I don't know about any such vs code file I'm afraid. |
Added models_animation_playing.odin.odin example which is based on raylib models_animation_playing.c .
The original c example is playable here .
Checklist before submitting:
.github/workflows/check.yml
(for automatic testing)-vet -strict-style -vet-tabs -disallow-do -warnings-as-errors