Skip to content
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

[rmodels] New feature idea: Animation speed #4442

Closed
4 tasks done
TokyoSU opened this issue Oct 26, 2024 · 2 comments
Closed
4 tasks done

[rmodels] New feature idea: Animation speed #4442

TokyoSU opened this issue Oct 26, 2024 · 2 comments
Labels
enhancement This is an improvement of some feature

Comments

@TokyoSU
Copy link
Contributor

TokyoSU commented Oct 26, 2024

Please, before submitting a new issue verify and check:

  • I tested it on latest raylib version from master branch
  • I checked there is no similar issue already reported
  • I checked the documentation on the wiki
  • My code has no errors or misuse of raylib

Issue description

Being able to use an animation speed possibly 0-1 float that slow or speed down animation regardless of the frame count.

Environment

All.

Issue Screenshot

None

Code Example

UpdateModelAnimation(model, anim[0], frame); <- frame should be float 0-1, in case it's 0.5f, it should be in the middle of animation.
With this, we could also use deltaTime.

Currently, we need to use frame in integer:

if (frame >= frameEnd)
    frame = 0;
frame++;
@CodingMadness
Copy link

absolutely, this should be in it.

@raysan5 raysan5 added the enhancement This is an improvement of some feature label Nov 1, 2024
@raysan5
Copy link
Owner

raysan5 commented Nov 3, 2024

Thanks for reporting, added reference to #4426. I'm closing this issue.

@raysan5 raysan5 closed this as completed Nov 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement This is an improvement of some feature
Projects
None yet
Development

No branches or pull requests

4 participants
@raysan5 @CodingMadness @TokyoSU and others