playcanvas / playcanvas/engine
Adjustable animation state transition interpolation
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 16.8k
- Forks
- 2k
- Avg merge
- 4h 32m
- Merged PRs (30d)
- 222
Description
Add option to create custom animation state transition interpolations inside state graph.
Currently we have the options to adjust Exit time, duration, offset, etc... but no option to specify how the interpolation is handled. Right now always linear interpolation is used.
What I have in mind is adding a curve attribute. By default the curve can be linear and is adjustable by the user. This would give us the ability to use different interpolation curves to interpolate between two animation states.
One example would be a easeInOutQuad interpolation.
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 by locating the animation state graph transition entry point and how exit time, duration, and offset are represented. Define the required behavior for a curve attribute with linear as the default, then verify that an easeInOutQuad-style interpolation can be selected between animation states.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- game-dev
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100