当前位置:网站首页>[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 .
边栏推荐
- C language strawberry
- Bugkuctf-web16 (backup is a good habit)
- In SQL injection, why must the ID of union joint query be equal to 0
- Save video opencv:: videowriter
- BugkuCTF-web16(备份是个好习惯)
- 每天睡觉前30分钟阅读_day3_Files
- The road is blocked and long, and the line is coming
- 2837xd code generation - stateflow (3)
- C language: making barrels
- C语言之到底是不是太胖了
猜你喜欢
随机推荐
阿里云SLS日志服务
The road is blocked and long, and the line is coming
Error reporting on the first day of work (error reporting when Nessus installs WinPcap)
BugkuCTF-web21(详细解题思路及步骤)
c语言编程题
Career planning and development
2837xd代码生成模块学习(2)——ADC、ePWM模块、Timer0
go语言入门
Introduction and prevention of penetration test
Mysql索引
2837xd 代碼生成——StateFlow(4)
2837xd 代码生成——总结篇
2837xd 代码生成——StateFlow(3)
Read 30 minutes before going to bed every day_ day3_ Files
A model can do two things: image annotation and image reading Q & A. VQA accuracy is close to human level | demo can be played
Required request body is missing: (cross domain problem)
C语言之分草莓
每天睡觉前30分钟阅读_day4_Files
2837xd code generation - Summary
BugkuCTF-web16(备份是个好习惯)








