当前位置:网站首页>[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 .
边栏推荐
- YOLO物体识别,生成数据用到的工具
- Activity的创建和跳转
- 2837xd code generation - stateflow (1)
- Failed to configure a DataSource: ‘url‘ attribute is not specified and no embedd
- Sil/pil test of matlab code generation
- Personal experience & blog status
- Memories of a chat
- 逆变器simulink模型——处理器在环测试(PIL)
- 2837xd code generation - Summary
- 图像识别-数据清洗
猜你喜欢

Tools used for Yolo object recognition and data generation

个人经历&&博客现状

2837xd 代码生成——总结篇

ICLR 2022: how does AI recognize "things I haven't seen"?

Matlab生成dsp程序——官方例程学习(6)

Failed to configure a DataSource: ‘url‘ attribute is not specified and no embedd

kinect dk 获取CV::Mat格式的彩色RGB图像(openpose中使用)

ESLint 报错

Alibaba cloud SMS service

Mixed development of uni app -- Taking wechat applet as an example
随机推荐
C语言之数据插入
Skywalking理论与实践
Mysql索引
图像识别-数据清洗
滲透測試的介紹和防範
2837xd code generation - Supplement (2)
Image recognition - data annotation
Kinect DK obtains color RGB images in cv:: mat format (used in openpose)
2837xd 代码生成——StateFlow(3)
记录一下初次使用Xray的有趣过程
每天睡前30分钟阅读Day5_Map中全部Key值,全部Value值获取方式
Junit5 supports suite methods
Matlab代码生成之SIL/PIL测试
攻防世界-Web进阶区-unserialize3
阿里云短信服务
Bugkuctf-web24 (problem solving ideas and steps)
YOLO物体识别,生成数据用到的工具
图像识别-数据增广
Image recognition - data augmentation
Junit5 支持suite的方法