Search Issue Tracker

Fixed in 5.6.0

Votes

0

Found in

5.3.1p3

Issue ID

763223

Regression

No

Animator.velocity spikes when blending animations with different length while the blend ratio changing

Animation

-

How to reproduce:
1. Open the attached project
2. Open and play Scene
3. Move the character with arrow keys to one direction
4. Stop and start moving again
5. Notice the spikes in the screen (Red graph on the screen indicates Animator.velocity.magnitude. Press space key to apply correction)
6. (workaround) Multiplying ratio of lengths (AnimatorStateInfo.length) of current and previous frames seems to correct the problem. Press Space in playmode to see this result

Note: tested using simple animation controller (without blend trees). It works fine

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.