当前位置:网站首页>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
边栏推荐
- What is the difference between SAP ERP and ORACLE ERP?
- Use CH341A to program external Flash (W25Q16JV)
- 【 genius_platform software platform development 】 : seventy-six vs the preprocessor definitions written cow force!!!!!!!!!!(in the other groups conding personnel told so cow force configuration to can
- 905. Interval selection
- sql怎么找字段里所有数据为空的字段
- 通过模拟Vite一起深入其工作原理
- 【滤波跟踪】基于matlab无迹卡尔曼滤波惯性导航+DVL组合导航【含Matlab源码 2019期】
- The test salary is so high?20K just graduated
- 论治理与创新,2022 开放原子全球开源峰会 OpenAnolis 分论坛圆满落幕
- [论文笔记] MapReduce: Simplified Data Processing on Large Clusters
猜你喜欢
Spark基础【介绍、入门WordCount案例】
Developing Hololens encountered The type or namespace name 'HandMeshVertex' could not be found..
告白数字化转型时代,时速云镌刻价值新起点
CPDA|How Operators Learn Data Analysis (SQL) from Negative Foundations
public static <T> List<T> asList(T... a) 原型是怎么回事?
沃谈小知识 |“远程透传”那点事儿
Web3.0 Dapps——通往未来金融世界的道路
Dynamic management of massive service instances
How to Add Category-Specific Widgets in WordPress
Acid (ACID) Base (BASE) Principles for Database Design
随机推荐
2022软件测试工程师最全面试题
数学-求和符号的性质
Redis1: Introduction to Redis, basic features of Redis, relational database, non-relational database, database development stage
Increasing leetcode - a daily topic 1403. The order of the boy sequence (greed)
How to discover a valuable GameFi?
Is your data safe in this hyperconnected world?
burp安装及代理设置
10 years of testing experience, worthless in the face of the biological age of 35
ffmpeg 枚举decoders, encoders 分析
基于生长的棋盘格角点检测方法
为什么pca分量没有关联
十五. 实战——mysql建库建表 字符集 和 排序规则
iMedicalLIS监听程序(2)
Turn: Charles Handy: Who you are is more important than what you do
Android实战开发-Kotlin教程(入门篇-登录功能实现 3.3)
沃谈小知识 |“远程透传”那点事儿
[GYCTF2020]EasyThinking
Why did they choose to fall in love with AI?
Based on holding YOLOv5 custom implementation of FacePose YOLO structure interpretation, YOLO data format conversion, YOLO process modification"
Leading the highland of digital medicine, Zhongshan Hospital explores to create a "new paradigm" for future hospitals