创建动画蓝图CharacterAnimBp
在EventGraph中 需要获得当前player的移动角度和当前朝向移动速度
其中速度 可以通过获得pawn的GetVelocity 的长度来设置
角度的话需要通过移动方向的角度与当前朝向的角度进行计算
其中移动方向的角度为RotationFromXVector 计算 当前朝向通过GetControlRotation计算

进入AniGraph中 将speed direction变量赋值给混合动画

创建动画蓝图CharacterAnimBp
在EventGraph中 需要获得当前player的移动角度和当前朝向移动速度
其中速度 可以通过获得pawn的GetVelocity 的长度来设置
角度的话需要通过移动方向的角度与当前朝向的角度进行计算
其中移动方向的角度为RotationFromXVector 计算 当前朝向通过GetControlRotation计算
进入AniGraph中 将speed direction变量赋值给混合动画
本文标题:17 - Character Animation Bluepri
本文链接:https://www.haomeiwen.com/subject/mkcjkxtx.html
网友评论