Advanced Sliding Doors

From EVERYWHERE wiki
Revision as of 17:33, 2 July 2024 by Zinx (talk | contribs) (Showing an advanced way to open and close sliding doors.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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.

Video coming soon!

Required Nodes & Objects:

1x Box/Cylinder/Sphere Trigger Volume.

4x Move Nodes or 2x Move Nodes depending on how many objects you move.

2x Gate Nodes

2x Sequence Nodes

1x or 2x Objects that will be used to create a door.

           1

Grab n Place

Make sure to grab all the nodes that you're going to use in this example.

           2

Move Node Setup

Since the move nodes will be only acting on the object, we need to link all four(or two) of them to the object. Make sure two act-on (Move Nodes) goes to one object each or both to one using a singular object. Reference Image

           3

Sequence Node Setup

One Sequence to One Gate. Event 1 on a gate goes to the activate then the event 2 goes to close the gate. Reference Image

           4

Link the Trigger to Sequence Node 1 of 2

On Enter → Activate

Link the Trigger to Sequence Node 2 of 2

On Exit → Activate

Reference Image.

           5

Link the Gate Node 1 of 2 to Move Node 1 of 2

On Activate → Start (1 or 2 nodes)
If you have two doors it will be Gate Node 1 to 2 of 4 Move Nodes and Gate 2 to 4 of 4 Move Nodes.

Link the Gate Node 2 of 2 to Move Node 2 of 2

On Activate → Start (1 or 2 nodes)

Reference Image (Two Objects). Reference Image (One Object). This includes two moving objects and one single moving object, with two different setups of move.

Make sure to switch off "Use World Space" since we'll be using local.

           6

Adjusting Movements

In our example we'll have the object(s) move down and open from the sides.

Next to Translation, there are three sliders for each axis in this order: X, Y, Z

Toggle the Transform Space (it will look darker) and click on the object(s).

Then you want to make a note of the current position and move it to where you want it.

In this example we'll move the object down so we'd look for the Z axis. Reference Image (One Object) and Reference Image (Two Objects).

We are turning on local space to figure out which axis we're moving as shown in the references.

For us, our single object current position is 1571.5 and moving it under the map puts it at 1567.99.

So to open it we would set our first move point on the Z axis to, -3.51 to open and 3.51 to close. Reference Image Open (One Object) and Reference Image Close (One Object).

Two objects are the same as a single object but a bit different.

For the two moving objects, we'd get how far one needs to move and remembers its position (same as above).

So ours is red (X) axis -505.44 and moves to 508.84. So the door will be 3.3 as the movement.

Since we are going to use local and not world space, we are putting this in the Z box as well.

You should have two attach to ONE object and two attached to the SECOND object.

Object One would be 3.3 or -3.3 depending on movement. Then depending how you've designed it, it might be the opposite or same depending on rotation.

Example: My move would be 3.3 to open and -3.3 to close. So the second object would be 3.3 to open and -3.3 to close.

I recommend always keeping nodes close but remember which is which and what does what function.

Left is strictly open and right would be strightly closing. This keeps things simple!

           7

Finally closing the circuit

We want to unlock the closing gate so we can let it lock up behind us!

On Finishing → Unlock

Then repeat that the closing the same way so we can unlock the opening gate.

Reference Image (Two Objects).Reference Image (One Object).

           8

Your objects should look similar or close to this.

Reference Image (Two Objects)

           9

Time to test your new door/object thingy!

Before hitting play, go click the arrow next to play and play from camera to quickly test it.

Final Look 1 and Final look 2