How to make a Two-way Door that Rotates with two different Pivot Points?

Hi!

I’m new here and I wanted to join in to ask this since I can’t seem to find an answer anywhere…

I was wondering if anyone would know how to make a door that opens both ways but changes its PIVOT POINT depending on the Player’s Push.

Here’s a drawing explaining what I had in mind.

They have similar doors in RESIDENT EVIL 2 REMAKE. If you look at the door mesh, its rotation points change depending on which side you open the door on.

Thanks a lot in advance! :slight_smile:

Presumably the door is a BP.

You need to get to grips with adding scene components to use as pivot points.

A scene component takes up ‘no space’, it’s just a point. You need to select the door, then add the scene, and move it into the correct position:

](filedata/fetch?id=1834233&d=1605863140)

Notice how it’s attached to the door. It’s location has translation ( because I had to move it to the hinge location ), but it’s rotation is zero.

Now you perform this swap:

swap scene.jpg

and we have:

](filedata/fetch?id=1834236&d=1605863387)

The door is now attached to the scene, but the scene still has no rotation translation. This means we can write the code to move the scene ( easy because it starts at 0,0,0 ) and the door will go with it.

I selected the door again, and added another scene ( second hinge ), did the same swap and then hung the new scene on the old one:

Screenshot_4.jpg](filedata/fetch?id=1834237&d=1605863584)

Now I can rotate the door from either point easily…

That looks great! I’ll give it a try!

Thanks, greatly appreciated! :slight_smile: