Sixze / ALS-Refactored

Completely reworked and improved C++ version of Advanced Locomotion System V4.
MIT License
943 stars 261 forks source link

UAlsAnimationInstance::RefreshVelocityBlend may produce NaN when velocity is zero? #524

Closed watsonsong closed 2 months ago

watsonsong commented 2 months ago

When the character is not moving, the RelativeVelocityDirection may get a zero value. Which lead to the TargetVelocityBlend contains NaN. It could be better check this. The NaN may pass to ForwardAmount on some platform. It may lead the animation has some error.

Sixze commented 2 months ago

Fixed here: https://github.com/Sixze/ALS-Refactored/pull/525.