playcanvas / playcanvas/engine

Adjustable animation state transition interpolation

Open
#5,217 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area: animation enhancement
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.