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

边栏推荐
- rpc-remote procedure call demo
- 2022 High-level installation, maintenance, and removal of exam questions mock exam question bank and online mock exam
- Growth-based checkerboard corner detection method
- 静态方法获取配置文件数据
- 运维监控系统之Open-Falcon
- presto启动成功后出现2022-08-04T17:50:58.296+0800 ERROR Announcer-3 io.airlift.discovery.client.Announcer
- ffmpeg 像素格式基础知识
- Mathematics - Properties of Summation Symbols
- Dive into how it works together by simulating Vite
- Based on holding YOLOv5 custom implementation of FacePose YOLO structure interpretation, YOLO data format conversion, YOLO process modification"
猜你喜欢

MRTK3 develops Hololens application - gesture drag, rotate, zoom object implementation

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

沃谈小知识 |“远程透传”那点事儿

如何在WordPress中添加特定类别的小工具

Use Unity to publish APP to Hololens2 without pit tutorial

Industry Status?Why do Internet companies prefer to spend 20k to recruit people rather than raise their salary to retain old employees~

YYGH-13-Customer Service Center

冒泡排序与快速排序

Detailed and comprehensive postman interface testing practical tutorial

Swing有几种常用的事件处理方式?如何监听事件?
随机推荐
Getting Started with Kubernetes Networking
2022软件测试工程师最全面试题
STM32 uses stm32cubemx LL library series tutorial
高项 02 信息系统项目管理基础
GC Gaode coordinate and Baidu coordinate conversion
The usage of try...catch and finally in js
包拉链不可用,但是是被另一个包。
Use Unity to publish APP to Hololens2 without pit tutorial
Static method to get configuration file data
Cybersecurity and the Metaverse: Identifying Weak Links
ASP.NET应用程序--Hello World
MRTK3开发Hololens应用-手势拖拽、旋转 、缩放物体实现
[论文笔记] MapReduce: Simplified Data Processing on Large Clusters
905. Interval selection
Open-Falcon of operation and maintenance monitoring system
Bubble Sort and Quick Sort
YYGH-13-客服中心
Common open source databases under Linux, how many do you know?
Burp installation and proxy settings
ffmpeg pixel format basics