当前位置:网站首页>UE4 第一人称角色模板 添加蹲伏功能
UE4 第一人称角色模板 添加蹲伏功能
2022-08-05 03:29:00 【Zhichao_97】
效果:

步骤:
1.点击 设置-》项目设置

2.找到 引擎-》输入 添加一个操作映射,从而让按键盘c时能够使角色蹲伏

3.创建如下节点,使得按下键盘C键时,能够修改角色的行走速度,蹲伏行走速度、最大行走速度为浮点型变量

4.创建一个时间轴

设置时间轴:两个关键帧分别为(0,0)和(0.5,1)

5.获取一个对相机的引用

希望让相机及其子项的位置降低从而达到蹲伏的效果,因此需要设置相机的相对位置

6.检查一下相机一开始的位置 ,将其填入插值(向量)节点中

7.继续在插值节点中设置蹲伏后的相机位置,xy轴不变,减小z的值

此时角色已经可以蹲伏,但是碰撞体没有变化,因而无法通过高度较矮的洞穴之类的通道,因此需要改变碰撞体的高度
8.获取胶囊碰撞体的引用

9.设置胶囊碰撞体变为原来高的一半

10.新建一个插值节点

11.让胶囊体的高度从一开始的96,变为50

边栏推荐
- 21天学习挑战赛(2)图解设备树的使用
- Android 面试题——如何徒手写一个非阻塞线程安全队列 ConcurrentLinkedQueue?
- 2022.8.4-----leetcode.1403
- 2022 Hangzhou Electric Multi-School 1st Game
- rpc-remote procedure call demo
- Package zip is not available, but is referred to by another package.
- Summary of domestic environments supported by SuperMap
- 事件解析树Drain3使用方法和解释
- How to simulate the background API call scene, very detailed!
- Use Unity to publish APP to Hololens2 without pit tutorial
猜你喜欢

Beyond YOLO5-Face | YOLO-FaceV2 officially open source Trick+ academic point full

Spark基础【介绍、入门WordCount案例】

Industry Status?Why do Internet companies prefer to spend 20k to recruit people rather than raise their salary to retain old employees~
![[Filter tracking] based on matlab unscented Kalman filter inertial navigation + DVL combined navigation [including Matlab source code 2019]](/img/c9/fff226b6d33a773b59a0314a99a788.png)
[Filter tracking] based on matlab unscented Kalman filter inertial navigation + DVL combined navigation [including Matlab source code 2019]

YYGH-13-客服中心

shell脚本:for循环与while循环

iMedicalLIS监听程序(2)

数据库设计的酸(ACID)碱(BASE)原则

Swing有几种常用的事件处理方式?如何监听事件?

How to discover a valuable GameFi?
随机推荐
Burp installation and proxy settings
ffmpeg pixel format basics
论治理与创新,2022 开放原子全球开源峰会 OpenAnolis 分论坛圆满落幕
Developing Hololens encountered The type or namespace name 'HandMeshVertex' could not be found..
新人如何入门和学习软件测试?
token、jwt、oauth2、session解析
从“能用”到“好用” 国产软件自主可控持续推进
测试薪资这么高?刚毕业就20K
Intersection of Boolean Operations in SuperMap iDesktop.Net - Repairing Complex Models with Topological Errors
ffmpeg 像素格式基础知识
为什么pca分量没有关联
引领数字医学高地,中山医院探索打造未来医院“新范式”
ffmpeg enumeration decoders, encoders analysis
2022软件测试工程师最全面试题
36-Jenkins-Job迁移
Initial solution of the structure
阿里本地生活单季营收106亿,大文娱营收72亿,菜鸟营收121亿
10 years of testing experience, worthless in the face of the biological age of 35
Dameng 8 database export and import
Defect detection (image processing part)