Sliding Doors: Difference between revisions
Created page with "This page shows you how to use Move Node with objects and triggers. You can apply the same principles with different types of triggers, interactions and switches. <div style="background-color: #050522; float: right; width: 800px; margin-right: 0px;"> <div class="video-container"> <!-- Replace the placeholder video URL with your actual YouTube video URL --> <youtube width="640" height="360">k0_IInvfvuk</youtube> <div style="border: 1px solid #473ba7; bor..." |
m Protected "Sliding Doors" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)) |
||
(8 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
This page shows you how to use Move Node with objects and triggers. You can apply the same principles with different types of triggers, interactions and switches. | This page shows you how to use Move Node with objects and triggers to create sliding doors. You can apply the same principles with different types of triggers, interactions and switches. | ||
<div style="background-color: #050522; float: right; width: 800px; margin-right: 0px;"> | <div style="background-color: #050522; float: right; width: 800px; margin-right: 0px;"> | ||
<div class="video-container"> | <div class="video-container"> | ||
Line 7: | Line 7: | ||
<div style="border: 1px solid #473ba7; border-radius: 8px; background-color: #050522; padding: 10px; box-shadow: 0 2px 5px rgba(0,0,0,0.1); margin: 10px 0; float: right; width: 630px; margin-right: 35px;"> | <div style="border: 1px solid #473ba7; border-radius: 8px; background-color: #050522; padding: 10px; box-shadow: 0 2px 5px rgba(0,0,0,0.1); margin: 10px 0; float: right; width: 630px; margin-right: 35px;"> | ||
Required Nodes & Objects: | Required Nodes & Objects: | ||
<p>1x Trigger Volume</p> | <p>1x Box Trigger Volume</p> | ||
<p>4x Move Node</p> | <p>4x Move Node</p> | ||
<p>2x Doors</p> | <p>2x Doors (to create a sliding door)</p> | ||
</div> | </div> | ||
</div></div> | </div></div> | ||
Line 19: | Line 19: | ||
<span class="step-number">1</span> | <span class="step-number">1</span> | ||
<div class="step-content"> | <div class="step-content"> | ||
<h3>Place | <h3>Place Box Trigger Volume</h3> | ||
<p>This | <p>This will trigger linked nodes when a player steps in / steps out its volume. You can adjust the scale of it to make sure it covers the designated area.</p> | ||
</div> | </div> | ||
</div> | </div> | ||
Line 27: | Line 27: | ||
<span class="step-number">2</span> | <span class="step-number">2</span> | ||
<div class="step-content"> | <div class="step-content"> | ||
<h3>Place | <h3>Place Move Node 1</h3> | ||
<p>This node provides | <p>This node provides movement component to the attached object. This will open one side of our door.</p> | ||
</div> | </div> | ||
</div> | </div> | ||
Line 35: | Line 35: | ||
<span class="step-number">3</span> | <span class="step-number">3</span> | ||
<div class="step-content"> | <div class="step-content"> | ||
<h3>Place | <h3>Place Move Node 2</h3> | ||
<p>This node | <p>This node provides movement component to the attached object. This will open the second side of our door.</p> | ||
</div> | </div> | ||
</div> | </div> | ||
Line 43: | Line 43: | ||
<span class="step-number">4</span> | <span class="step-number">4</span> | ||
<div class="step-content"> | <div class="step-content"> | ||
<h3> | <h3>Link Box Trigger Volume to Move Node 1</h3> | ||
<p> | <p><code>On Enter → Start</code></p> | ||
<h3>Link Box Trigger Volume to Move Node 2</h3> | |||
<p><code>On Enter → Start</code></p> | |||
</div> | </div> | ||
</div> | </div> | ||
Line 51: | Line 53: | ||
<span class="step-number">5</span> | <span class="step-number">5</span> | ||
<div class="step-content"> | <div class="step-content"> | ||
<h3>Link | <h3>Link Move Node 1 to first door</h3> | ||
<p><code>On | <p><code>Act On → Door(1)</code></p> | ||
<p><code> | <h3>Link Move Node 2 to second door</h3> | ||
<p><code>Act On → Door(2)</code></p> | |||
</div> | </div> | ||
</div> | </div> | ||
Line 60: | Line 63: | ||
<span class="step-number">6</span> | <span class="step-number">6</span> | ||
<div class="step-content"> | <div class="step-content"> | ||
<h3> | <h3>Open Move Node 1 attribute panel</h3> | ||
<p>< | <p>In our example, we want to move the door sideways, that will be our Y axis</p> | ||
<p> | <p>Next to Translation, there are three sliders for each axis in this order: X, Y, Z</p> | ||
<p>On the Y axis change the value to 1.5</p> | |||
</div> | </div> | ||
</div> | </div> | ||
Line 69: | Line 73: | ||
<span class="step-number">7</span> | <span class="step-number">7</span> | ||
<div class="step-content"> | <div class="step-content"> | ||
<h3> | <h3>Open Move Node 2 attribute panel</h3> | ||
<p>We want the | <p>In our example, we want to move the door sideways, that will be our Y axis</p> | ||
<p>We want this one to go in the opposite direction, so we give the negative value to Move Node 1</p> | |||
<p>On the Y axis change the value to -1.5</p> | |||
</div> | </div> | ||
</div> | </div> | ||
<div class="step"> | <div class="step"> | ||
<span class="step-number">8</span> | <span class="step-number">8</span> | ||
<div class="step-content"> | <div class="step-content"> | ||
<h3>The doors now will slide open when we enter the Box Trigger Volume</h3> | |||
<h3>We need to add the reverse action when we exit the Box Trigger Volume</h3> | |||
</div> | </div> | ||
</div> | </div> | ||
Line 86: | Line 91: | ||
<span class="step-number">9</span> | <span class="step-number">9</span> | ||
<div class="step-content"> | <div class="step-content"> | ||
<h3>Place | <h3>Place Move Node 3 and Move Node 4</h3> | ||
<p> | <p>These nodes will move the doors back to their original position when we exit the trigger volume.</p> | ||
</div> | </div> | ||
</div> | </div> | ||
Line 95: | Line 99: | ||
<span class="step-number">10</span> | <span class="step-number">10</span> | ||
<div class="step-content"> | <div class="step-content"> | ||
<h3>Link | <h3>Link Box Trigger Volume to Move Node 3</h3> | ||
<p><code> | <p><code>On Exit → Start</code></p> | ||
<h3>Link Box Trigger Volume to Move Node 4</h3> | |||
<p><code>On Exit → Start</code></p> | |||
</div> | |||
</div> | |||
<div class="step"> | |||
<span class="step-number">11</span> | |||
<div class="step-content"> | |||
<h3>Link Move Node 3 to first door</h3> | |||
<p><code>Act On → Door(1)</code></p> | |||
<h3>Link Move Node 4 to second door</h3> | |||
<p><code>Act On → Door(2)</code></p> | |||
</div> | |||
</div> | |||
<div class="step"> | |||
<span class="step-number">12</span> | |||
<div class="step-content"> | |||
<h3>Open Move Node 3 attribute panel</h3> | |||
<p>In our example, we want to reverse the 1.5 Y axis movement</p> | |||
<p>On the Y axis change the value to -1.5</p> | |||
</div> | |||
</div> | |||
<div class="step"> | |||
<span class="step-number">14</span> | |||
<div class="step-content"> | |||
<h3>Open Move Node 4 attribute panel</h3> | |||
<p>In our example, we want to reverse the -1.5 Y axis movement</p> | |||
<p>On the Y axis change the value to 1.5</p> | |||
</div> | </div> | ||
</div> | </div> | ||
Latest revision as of 16:45, 17 June 2024
This page shows you how to use Move Node with objects and triggers to create sliding doors. You can apply the same principles with different types of triggers, interactions and switches.
Required Nodes & Objects:
1x Box Trigger Volume
4x Move Node
2x Doors (to create a sliding door)
1
Place Box Trigger Volume
This will trigger linked nodes when a player steps in / steps out its volume. You can adjust the scale of it to make sure it covers the designated area.
2
Place Move Node 1
This node provides movement component to the attached object. This will open one side of our door.
3
Place Move Node 2
This node provides movement component to the attached object. This will open the second side of our door.
4
Link Box Trigger Volume to Move Node 1
On Enter → Start
Link Box Trigger Volume to Move Node 2
On Enter → Start
5
Link Move Node 1 to first door
Act On → Door(1)
Link Move Node 2 to second door
Act On → Door(2)
6
Open Move Node 1 attribute panel
In our example, we want to move the door sideways, that will be our Y axis
Next to Translation, there are three sliders for each axis in this order: X, Y, Z
On the Y axis change the value to 1.5
7
Open Move Node 2 attribute panel
In our example, we want to move the door sideways, that will be our Y axis
We want this one to go in the opposite direction, so we give the negative value to Move Node 1
On the Y axis change the value to -1.5
8
The doors now will slide open when we enter the Box Trigger Volume
We need to add the reverse action when we exit the Box Trigger Volume
9
Place Move Node 3 and Move Node 4
These nodes will move the doors back to their original position when we exit the trigger volume.
10
Link Box Trigger Volume to Move Node 3
On Exit → Start
Link Box Trigger Volume to Move Node 4
On Exit → Start
11
Link Move Node 3 to first door
Act On → Door(1)
Link Move Node 4 to second door
Act On → Door(2)
12
Open Move Node 3 attribute panel
In our example, we want to reverse the 1.5 Y axis movement
On the Y axis change the value to -1.5
14
Open Move Node 4 attribute panel
In our example, we want to reverse the -1.5 Y axis movement
On the Y axis change the value to 1.5