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

Fix morph interpolation #9927

Merged
merged 4 commits into from
Sep 27, 2023
Merged

Fix morph interpolation #9927

merged 4 commits into from
Sep 27, 2023

Conversation

A-Walrus
Copy link
Contributor

Objective

Fixes: #9898

Solution

Make morph behave like other keyframes, lerping first between start and end, and then between the current state and the result.

Changelog

Fixed jerky morph targets

@mockersf mockersf added the A-Animation Make things move and change over time label Sep 26, 2023
Copy link
Contributor

@nicopap nicopap left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

crates/bevy_animation/src/lib.rs Outdated Show resolved Hide resolved
crates/bevy_animation/src/lib.rs Outdated Show resolved Hide resolved
A-Walrus and others added 2 commits September 26, 2023 12:53
Copy link
Contributor

@CGMossa CGMossa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

I investigated this with @nicopap; As they attempted to mentor me through solving this.
I learned a lot, and thus able to review this a little bit.

Very impressive work! I still don't fully get it, but it is as far as I got myself!

crates/bevy_animation/src/lib.rs Outdated Show resolved Hide resolved
@nicopap nicopap added C-Bug An unexpected or incorrect behavior S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it labels Sep 26, 2023
Co-authored-by: CGMossa <[email protected]>
@mockersf mockersf added this pull request to the merge queue Sep 27, 2023
Merged via the queue into bevyengine:main with commit df899d2 Sep 27, 2023
@A-Walrus A-Walrus deleted the fix_jerky_morph branch September 27, 2023 07:59
rdrpenguin04 pushed a commit to rdrpenguin04/bevy that referenced this pull request Jan 9, 2024
# Objective
Fixes: bevyengine#9898
## Solution
Make morph behave like other keyframes, lerping first between start and
end, and then between the current state and the result.

## Changelog
Fixed jerky morph targets

---------

Co-authored-by: Nicola Papale <[email protected]>
Co-authored-by: CGMossa <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Animation Make things move and change over time C-Bug An unexpected or incorrect behavior S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Morph targets are jerky
4 participants