当前位置:网站首页>UE4 学习记录一 创建角色,并控制其移动
UE4 学习记录一 创建角色,并控制其移动
2022-06-25 22:00:00 【北极熊的奋斗史】
这只是用来记录我学习UE4过程的,可能帮不到你,先说声抱歉。为了防止误导他人,请勿转载,请勿转载,请勿转载。
本文的主题是创建角色,并控制其前后左右,旋转上下,跳跃等移动。总章目录(https://blog.csdn.net/chenxipu123/article/details/113523712)。
1. 创建空项目,不做详细记录。
2. 保存默认关卡为LevelOne,添加蓝图类角色、玩家控制器、游戏模式三项蓝图类,并修改名称,如下图所示。

3. 修改世界场景设置,分别设置游戏模式重载、默认pawn类、玩家控制器三项为上一步创建的三个对象。

4. 打开项目设置,添加键盘的wasd和鼠标移动的轴映射,用来控制角色移动和旋转。

5. 双击打开创建的角色蓝图类(MyCharacter),切换到事件图表,添加如下控制事件,编译,保存。

7. 添加跳跃控制,在项目设置-》输入-》操作映射,添加空格键控制跳跃操作。

8. 双击打开创建的角色蓝图类(MyCharacter),切换到事件图表,添加跳跃的相关操作,通过设置CharacterMovement中的跳跃z速度来控制跳起的高度等,编译,保存。

9. 在UE4主窗口中运行,则可以控制角色进行前后左右,上下转动、跳跃等操作。
边栏推荐
- ES6 -- formal parameter setting initial value, extension operator, iterator, and generating function
- Common MySQL database functions and queries
- Fastjson反序列化随机性失败
- Count the number of different palindrome subsequences in the string
- Pit resolution encountered using East OCR (compile LAMS)
- Implementation of importing vscode from PDM
- Xampp重启后,MySQL服务就启动不了。
- 毕业旅行 | 伦敦5日游行程推荐
- RepOptimizer: 其实是RepVGG2
- zabbix_server配置文件详解
猜你喜欢

UE4_ Ue5 combines the offline voice recognition plug-in for speech recognition

电路模块分析练习6(开关)

konva系列教程2:绘制图形

After xampp restarts, the MySQL service cannot be started.

UE4_UE5结合offline voice recognition插件做语音识别功能

RepOptimizer: 其实是RepVGG2

String deformation (string case switching and realization)

论文笔记: 多标签学习 MSWL

Idea auto generator generates constructor get/set methods, etc

UE4 学习记录二 给角色添加骨架,皮肤,及运动动画
随机推荐
首个大众可用PyTorch版AlphaFold2复现,哥大开源OpenFold,star量破千
Applets - view and logic
New network security competition of the secondary vocational group in 2022
UE4 学习记录二 给角色添加骨架,皮肤,及运动动画
为什么OpenCV计算的帧率是错误的?
RepOptimizer: 其实是RepVGG2
MySQL queries data by day, week, month, quarter and year
Windows安装Redis及简单使用
问题记录与思考
元宇宙标准论坛成立
Determine whether the appointment time has expired
Unity的Ping類使用
[opencv450 samples] create image list yaml
No absurd tea applet - rule change
NLP pre training model-2018:bert dictionary
Problem recording and thinking
leetcode_ 136_ A number that appears only once
[modulebuilder] GP service realizes the intersection selection of two layers in SDE
ACM. HJ16 购物单 ●●
Svn icon disappearing solution