bevyengine / bevyengine/bevy

The position of a previous animation can affect the next animation

Open
#10,429 0 comments 3 reactions 0 assignees View on GitHub
A-Animation C-Bug
Dominant language
Rust
Stars
48.2k
Forks
4.8k
Avg merge
3d 22h
Merged PRs (30d)
161

Description

## Bevy version
0.12/main

## What you did

Switched between animations.

## What went wrong

- what were you expecting?
The animations to play at the same way.
- what actually happened?
The position of the previous animation can affect the next animation

## Additional information

In this video I go to the walking animation and pause it at it's peak, then I switch to the floating animation which now plays at a higher position than it should.
Then I cycle through the animations back to the floating animation while paused to show the correct position.

https://github.com/bevyengine/bevy/assets/29694403/802bce4a-7c4d-45ea-9e2b-6664be8db3ed

My guess is that the transforms animated by the previous animation but not by the next one are not reset to their base state.

So we need to store the base state of the transform hierarchy beneath the animation player and restore it when a new animation is played. This has to work with transitions which makes it more difficult.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.