17 - Character Animation Bluepri

2017-07-20  本文已影响19人  镜月s

创建动画蓝图CharacterAnimBp

在EventGraph中 需要获得当前player的移动角度和当前朝向移动速度 

其中速度 可以通过获得pawn的GetVelocity 的长度来设置

角度的话需要通过移动方向的角度与当前朝向的角度进行计算

其中移动方向的角度为RotationFromXVector 计算 当前朝向通过GetControlRotation计算

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

上一篇 下一篇

猜你喜欢

热点阅读