当前位置:网站首页>[illusory] automatic door blueprint notes
[illusory] automatic door blueprint notes
2022-07-02 10:00:00 【Qiao'an fish】
【 Unreal Engine 】UE4 Automatic door and manual door opening blueprint teaching
The notes are taken from AF Video of little white dragon .
One 、 Automatic Door
1. Create a door blueprint

Create a ACTOR The blueprint .
Copy the model and paste it into the components of the blueprint .
principle —— Change the position of the model .
2. Open the door with coordinates
Create two custom events : Open door / Closing event —— Hold down ctrl Drag and create keys for two doors 
Drag and drop Door R Key and create “ Set relative offset ” function —— stay NEW Location Right click “ Split structure pin ”—— Enter the corresponding coordinate value after opening the door 

3. Animate door opening
Drag and drop “ Set relative position ” Functional “ The goal is ” And new “ time axis ”—— Open timeline , Add floating point track 


Right click to add a key frame —— Set the first point time =0, value =0


Add a second point : Time =1, value =1( If the dot jumps out of view , You can click the two buttons in the red box )—— The overall opening time is 1S, So adjust the whole “ length ”=1.
Select two points , The right choice “ Automatically ”—— Blue handle will appear at two points —— Adjust the curve through the handle , Make the door opening animation more smooth .

4. Door opening and closing logic
When closing the timeline page , The timeline function will add the track we just added —— Drag and drop “ Open door ” newly build Lerp Difference function ——A Value is door R Initial position ,B The value is the end position , The return value is connected to the offset axis ( If it is moving on another axis , Just connect the corresponding coordinate axis )
Interpolation is equivalent to a range (0,1) Of IF function : If value =0, Play A; If value =1, Play B
This is the time axis setting just now (0,1) Why .
“ Open door ” Events connect the timeline “PLAY”,“ close ” Events connect the timeline “Reverse”.
The logic is : Open the door and play normally , When the door is closed, it plays in reverse , The value is also the opposite .
5. Add trigger
Add the box collider component in the viewport 
Adjust the size of the box collider 
Combination trigger “ Generate overlapping events ” Check it out. 
add to “ When components begin to overlap ”、“ At the end of the component overlap ” event 
“ When components begin to overlap ” Connect “ Open door ” function ——“ At the end of the component overlap ” Connect “ close ” function .
6. Add the blueprint to the scenario test
Be sure to check “ Movable ”, Otherwise, drag into the scene without displaying the model .
Add blueprints to the scene .
After entering the collider , The door opens automatically . After leaving the collider , The door closes automatically . The blueprint succeeded .
7. Add another door
Add another door with the same logic :
Duplicate door R Of “ Set relative position ” And connected —— door L And “ Set relative position ” Our goals are connected —— Copy interpolation , It is connected with the door opening key of the time axis , Return value connection “ Set relative position ” The axis of coordinates . stay A、B Fill in the corresponding coordinate value .
The blueprint of the whole automatic door is over .
边栏推荐
猜你喜欢

Image recognition - Data Cleaning

滲透測試的介紹和防範

It is the most difficult to teach AI to play iron fist frame by frame. Now arcade game lovers have something

2837xd 代码生成——StateFlow(2)

2837xd code generation module learning (3) -- IIC, ECAN, SCI, watchdog, ECAP modules

2837xd code generation - stateflow (3)

2837xd 代码生成——StateFlow(3)

2837xd Code Generation - Supplement (1)

个人经历&&博客现状

Introduction et prévention des essais de pénétration
随机推荐
每天睡觉前30分钟阅读_day4_Files
Typora installation package sharing
Memories of a chat
Skywalking理论与实践
cmake的命令-官方文档
QT信号槽总结-connect函数错误用法
How to handle error logic gracefully
ESLint 报错
并网逆变器PI控制(并网模式)
C语言之判断直角三角形
JDBC review
kinect dk 获取CV::Mat格式的彩色RGB图像(openpose中使用)
MySQL index
Junit4运行mvn test 测试套件升级方案
2837xd代码生成模块学习(4)——idle_task、Simulink Coder
Personal experience & blog status
[ue5] animation redirection: how to import magic tower characters into the game
Navicat 远程连接Mysql报错1045 - Access denied for user ‘root‘@‘222.173.220.236‘ (using password: YES)
2837xd code generation - stateflow (2)
TD conducts functional simulation with Modelsim