当前位置:网站首页>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

边栏推荐
- Industry Status?Why do Internet companies prefer to spend 20k to recruit people rather than raise their salary to retain old employees~
- iMedicalLIS监听程序(2)
- Summary of domestic environments supported by SuperMap
- 大佬们,我注意到mysql cdc connector有参数scan.incremental.sna
- 2022-08-04T17:50:58.296+0800 ERROR Announcer-3 io.airlift.discovery.client.Announcer appears after successful startup of presto
- Solana NFT开发指南
- 36-Jenkins-Job迁移
- After the large pixel panorama is completed, what are the promotion methods?
- 告白数字化转型时代,时速云镌刻价值新起点
- Linux下常见的开源数据库,你知道几个?
猜你喜欢
![[Paper Notes] MapReduce: Simplified Data Processing on Large Clusters](/img/89/8adef42b0cfd154e6fa7205afaeade.png)
[Paper Notes] MapReduce: Simplified Data Processing on Large Clusters

【已解决】Unity Coroutinue 协程未有效执行的问题

Step by step how to perform data risk assessment

Open-Falcon of operation and maintenance monitoring system

The test salary is so high?20K just graduated

测试薪资这么高?刚毕业就20K

21天学习挑战赛(2)图解设备树的使用

论治理与创新,2022 开放原子全球开源峰会 OpenAnolis 分论坛圆满落幕

Android 面试题——如何徒手写一个非阻塞线程安全队列 ConcurrentLinkedQueue?

Talking about data security governance and privacy computing
随机推荐
MRTK3开发Hololens应用-手势拖拽、旋转 、缩放物体实现
Dameng 8 database export and import
You may use special comments to disable some warnings. Three ways to report errors
用CH341A烧录外挂Flash (W25Q16JV)
[Storage] Dawning Storage DS800-G35 ISCSI maps each LUN to the server
Queue Topic: Recent Requests
Web3.0 Dapps - the road to the future financial world
cross domain solution
10 years of testing experience, worthless in the face of the biological age of 35
Detailed and comprehensive postman interface testing practical tutorial
Never put off till tomorrow what you can put - house lease management system based on the SSM
Object.defineProperty monitors data changes in real time and updates the page
Getting Started with Kubernetes Networking
The test salary is so high?20K just graduated
测试薪资这么高?刚毕业就20K
Why did they choose to fall in love with AI?
数组常用方法总结
调用阿里云oss和sms服务
21 Days Learning Challenge (2) Use of Graphical Device Trees
Use SuperMap iDesktopX data migration tool to migrate ArcGIS data