ue4加速度_UE4工程笔记_AdvancedLocomotionV3(Character蓝图02)

这篇博客详细介绍了UE4工程中Advanced Locomotion V3的Character蓝图,特别是关于角色的Rotation、Movement和Camera系统。Rotation部分涉及如何设置角色旋转、加速度限制以及根据移动速度动态调整旋转速率。Movement系统涵盖了不同步态下的速度选择、加速度控制和地面摩擦力设定。Camera系统则讨论了如何根据角色状态平滑过渡相机设置。此外,还详细解析了输入处理、蹲立切换、冲刺判断以及不同移动模式下的旋转管理。
摘要由CSDN通过智能技术生成

ed2b2bc5574340b6bde3b2ab92700bf3.png

接:UE4工程笔记_AdvancedLocomotionV3(Character蓝图01)

Rotation System部分:

SetCharacterRotation

Interp 'Character Rotation' to 'Target Rotation' if 'Interp Rotation' input is true. Also set 'Target / Character Rotation Difference'.

如果“interp rotation”输入为真,则将“character rotation”转换为“target rotation”。同时设置“目标/角色旋转差异”

Set Actor Rotation to 'Character Rotation' and send rotaiton to server (only if game is networked)将actor rotation设置为“character rotation”,并将rotaiton发送到服务器(仅当游戏联网时)

AddCharacterRotation

Add to current 'Character Rotation' then Set Actor Rotation.添加到当前的“角色旋转”,然后设置演员旋转

LookingDirectionWithOffset

Determine Cardinal Direction and use it to apply an offset relative to the Looking Rotation. This allows the character to stay rotated at set angles relative to movement while moving in an arbitrary direction. See image for more clarification - https://photos.app.goo.gl/J2WjSyL38XJ8nmkK7

确定主方向,并使用它应用一个相对于观察旋转的偏移。这允许角色在以任意方向移动时以相对于移动的设定角度保持旋转。更多说明请参见图片-https://photos.app.goo.gl/j2wjsyl38xj8nmkkk7

b7f9581729f1eda7e7b77d3561260730.png

CalculateRotationRate

Dynamically set Rotation Rate based on characters movement speed. Supports 2 Rotation Rates for differnet speeds. The Rotation Rate Multiplier is used to ramp down rotation rate whenever it is set to 0 (Automatically returns to 1)

根据角色移动速度动态设置旋转速率。支持2种不同速度的转速。旋转速率倍增器用于在旋转速率设置为0时降低旋转速率(自动返回1)

LimitRotation极限旋转

8c7895b1560037a1c6f421abb0c80615.png

Limit the Character's Rotation relative to the Looking Rotation if 'Aim Yaw Delta' passes a set threshold.如果“瞄准偏航增量”通过设置的阈值,则限制角色相对于观察旋转的旋转

Movement System部分:

UpdateALS_CharacterMovementSettings更新的角色移动设置

7c5f68db26d4a9f408325df8e0139d92.png

Choose and Update Character Movement settings.选择并更新字符移动设置

ChooseMaxWalkSpeed

a419269ff3334b2a5c640c450ae46037.png

Choose different speeds based on current Stance and Gait根据当前的姿势和步态选择不同的速度

ChooseMaxAcceleration加速度

bc3a3994febf94ca2050874029fffdfb.png

根据步态选择不同的加速度

ChooseBrakingDeceleration选择制动减速

4f812cf09fb846e3cef89796411807e9.png

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值