UED2 Main

UED2 Tutorial - Advanced Mover, Rotating Door
Doors, sliding up, down, left, right or just a more complex variation. Isn't it possible to make doors other ways? Ofcourse it is. To be able to follow and understand this tutorial it is important that you understand movers.
In this 'advanced' tutorial I show how to make two types of doors.
The first one, is a door that swing open and the other keep rotating.
First lets start with the right one, the rotating door.
It was created by crossing two brushes and then intersecting it to create one
more complex brush and then add it as a mover in the opening.
This is a mover, but we don't want it to move to any keyframe.
It should keep rotating forever.
To do this you need to set inital state to "None"
Then set "Physics" under "Movement" to "PHYS_Rotating".
The last thing to do is to set the RotationRate, Yaw to 5000 and make sure
that "IgnoreWhenEncroach" is selected.
(you can set any rotation rate you want and I believe that -5000
is more accurate as it is supposed to rotate counter clockwise).
Now you have a rotating door that looks like an entrance to
any finer hotel.
The second door, which swings open is almost as easy to create as the
rotating one.
The one thing to keep in mind is that a mover is located in the world by
its center handle (like all brushes and objects).
When a mover move from one keyframe to another it will move
the center handle from one position to destination.
Logical enough, if a mover rotate it will rotate around the center
handle.
This means that if you compare it with a regular door that is stuck
to the wall with hinges you need to make sure that the center handle
is at this location of the brush.
To create the door brush I first create the door somewhere in open space.
Then I create a twice as large (not height) builder cube and place it so
the center handle appear where I want the 'new' center handle to be.
As you can see on the image, the 'new' center handle will be placed
on the top right corner of the door.
Then intersect the brush and you have a mover that can be made to work
as a realistic door.
Place the door in the opening and then change to keyframe 1.
Rotate the door to its 'open' position and then select keyframe 0
again.
By default it have "BumpOpenTimed" and the only thing I changed is
the encroach type which I set to "IgnoreWhenencroach".
It is impossible to make a door swing either way depending
on what direction the player come from.
Simply because a mover move from one keyframe to another in sequence
which makes skipping frames impossible.
The "IgnoreWhenencroach" will enable the door to open, even though
a player stand in the way of it.
The player will not be shoved backwards either.