Automatic rule skips animation in State Machine if the animation is reversed with playrate -1

Steamwoman
Thu, 16 Nov 2017 11:47:16 +0000
Character & Animation

In the Animation State Machine, when applying the automatic rule to transitions for animations that play in reverse (playrate -1), instead of waiting for the animation to finish, the State Machine automatically blends between the animation before the reversed one, and the one which follows it. So basically it skips the reversed animation entirely.

Steps to reproduce:

1. Duplicate an animation and set the playrate to -1 (you might want to pick something a few seconds or longer just to make it extra obvious)

2. Create an animation blueprint and add a state machine

3. Add 3 States, First, Second, and Third

4. In the First and Third State, add an animation which loops as usual (eg idle and hoving in air)

5. In the Second State, add the reversed animation that you created in Step 1

6. Set up a transition from the First to Second State (for example, an IsInAir boolean)

7. For the transition from the Second to Third state, tick the “Automatic Rule Based on Sequence Player in State” tickbox

8. Activate the transition (by ticking your boolean or whatever you set up in Step 6) and observe how the Second State is skipped

9. Note how, if you replace the Second animation with the forward playing variant (playrate 1), the animation plays as expected and the Third State occurs after the Second State completes as expected.

Thanks very much for checking out this bug! It’s only little.

9 posts - 6 participants