当前位置:网站首页>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
边栏推荐
- .NET应用程序--Helloworld(C#)
- You may use special comments to disable some warnings. Three ways to report errors
- The second council meeting of the Dragon Lizard Community was successfully held!Director general election, 4 special consultants joined
- 2022-08-04T17:50:58.296+0800 ERROR Announcer-3 io.airlift.discovery.client.Announcer appears after successful startup of presto
- 达梦8数据库导出导入
- rpc-remote procedure call demo
- Walter talked little knowledge | "remote passthrough" that something
- What is the difference between SAP ERP and ORACLE ERP?
- ffmpeg pixel format basics
- presto启动成功后出现2022-08-04T17:50:58.296+0800 ERROR Announcer-3 io.airlift.discovery.client.Announcer
猜你喜欢
Never put off till tomorrow what you can put - house lease management system based on the SSM
IJCAI2022 | DictBert: Pre-trained Language Models with Contrastive Learning for Dictionary Description Knowledge Augmentation
Walter talked little knowledge | "remote passthrough" that something
How to Add Category-Specific Widgets in WordPress
Intersection of Boolean Operations in SuperMap iDesktop.Net - Repairing Complex Models with Topological Errors
Increasing leetcode - a daily topic 1403. The order of the boy sequence (greed)
Why is the pca component not associated
2022-08-04 The sixth group, hidden from spring, study notes
【已解决】Unity Coroutinue 协程未有效执行的问题
引领数字医学高地,中山医院探索打造未来医院“新范式”
随机推荐
You may use special comments to disable some warnings. 报错解决的三种方式
Dynamic management of massive service instances
The test salary is so high?20K just graduated
Growth-based checkerboard corner detection method
sql怎么找字段里所有数据为空的字段
数学-求和符号的性质
How to discover a valuable GameFi?
静态方法获取配置文件数据
论治理与创新,2022 开放原子全球开源峰会 OpenAnolis 分论坛圆满落幕
运维监控系统之Open-Falcon
【Mysql进阶优化篇02】索引失效的10种情况及原理
MySql的索引学习和使用;(本人觉得足够详细)
2022高处安装、维护、拆除考试题模拟考试题库及在线模拟考试
【滤波跟踪】基于matlab无迹卡尔曼滤波惯性导航+DVL组合导航【含Matlab源码 2019期】
21天学习挑战赛(2)图解设备树的使用
[Filter tracking] based on matlab unscented Kalman filter inertial navigation + DVL combined navigation [including Matlab source code 2019]
UE4 opens doors with overlapping events
龙蜥社区第二届理事大会圆满召开!理事换届选举、4 位特约顾问加入
Never put off till tomorrow what you can put - house lease management system based on the SSM
数组常用方法总结