playcanvas / playcanvas/engine
Should Anim activeStateCurrentTime be capped between 0 and duration in a non looped stated?
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 16.8k
- Forks
- 2k
- Avg merge
- 4h 32m
- Merged PRs (30d)
- 222
Description
Related thread: https://forum.playcanvas.com/t/feedback-animstategraph-reverse-animation-even-when-finished/26397
See project where an unloop state animation is playing forwards and backwards
https://playcanvas.com/project/954386/overview/animation-time-issue
The activeStateCurrentTime is going pass the bounds of 0 and duration which means when changing speeds to the opposite direction, it doesn't playback correctly
(Press Space to reverse direction of speed)
Contributor guide
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 the linked PlayCanvas project and reproduce the unlooped animation that is reversed with Space, then consult the related forum thread for context. The fix is done when activeStateCurrentTime stays within 0 and duration and reversing playback behaves correctly at either bound.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- game-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100