![ed2b2bc5574340b6bde3b2ab92700bf3.png](https://i-blog.csdnimg.cn/blog_migrate/1433cb57f80cbc416bda97e3d5685955.jpeg)
接: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](https://i-blog.csdnimg.cn/blog_migrate/f97eea599ccc4bb48371c0e5e0e5b000.jpeg)
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](https://i-blog.csdnimg.cn/blog_migrate/5cb015dcc5e9c3f5c5742fc8eb35aa70.jpeg)
Limit the Character's Rotation relative to the Looking Rotation if 'Aim Yaw Delta' passes a set threshold.如果“瞄准偏航增量”通过设置的阈值,则限制角色相对于观察旋转的旋转
Movement System部分:
UpdateALS_CharacterMovementSettings更新的角色移动设置
![7c5f68db26d4a9f408325df8e0139d92.png](https://i-blog.csdnimg.cn/blog_migrate/f29001843c913ef8223d4cb4a9a8a435.jpeg)
Choose and Update Character Movement settings.选择并更新字符移动设置
ChooseMaxWalkSpeed
![a419269ff3334b2a5c640c450ae46037.png](https://i-blog.csdnimg.cn/blog_migrate/316b01e70f1ff5ebf5d01e0af7b78144.jpeg)
Choose different speeds based on current Stance and Gait根据当前的姿势和步态选择不同的速度
ChooseMaxAcceleration加速度
![bc3a3994febf94ca2050874029fffdfb.png](https://i-blog.csdnimg.cn/blog_migrate/ff42341bfffca83bb691b3c5a7178b68.jpeg)
根据步态选择不同的加速度
ChooseBrakingDeceleration选择制动减速
![4f812cf09fb846e3cef89796411807e9.png](https://i-blog.csdnimg.cn/blog_migrate/510d48155ff95ac87c82f9b69e79cf91.jpeg)