# Physics Door that moves only in one direction!?

**URL:** <https://forums.unrealengine.com/t/physics-door-that-moves-only-in-one-direction/1759877>\
**Category:** Blueprint\
**Tags:** unreal-engine, question, Blueprint\
**Created:** [March 18, 2024, 5:04am UTC](https://forums.unrealengine.com/t/physics-door-that-moves-only-in-one-direction/1759877 "2024-03-18T05:04:23Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![GloatingDevil](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/gloatingdevil/32/908576_2.png) [@GloatingDevil](https://forums.unrealengine.com/u/GloatingDevil)\
**Post date:** [March 18, 2024, 5:04am UTC](https://forums.unrealengine.com/t/physics-door-that-moves-only-in-one-direction/1759877/1 "2024-03-18T05:04:23Z")

</div>

Hello i have created a door using physics constraint i want it to open in only one direction.  
Instead of both 🙂

---

<div class="post-metadata">

**Author:** ![Quetzalcodename](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Quetzalcodename](https://forums.unrealengine.com/u/Quetzalcodename)\
**Post date:** [March 18, 2024, 9:43am UTC](https://forums.unrealengine.com/t/physics-door-that-moves-only-in-one-direction/1759877/2 "2024-03-18T09:43:22Z")

</div>

Hey @GloatingDevil!

Are you meaning that you want the door to swing outward one way? Would you mind sharing the results you have so far? If you are trying to prevent a full swing through the frame, have you added an inner door frame trim to your door?

---

<div class="post-metadata">

**Author:** ![GloatingDevil](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/gloatingdevil/32/908576_2.png) [@GloatingDevil](https://forums.unrealengine.com/u/GloatingDevil)\
**Post date:** [March 18, 2024, 10:15am UTC](https://forums.unrealengine.com/t/physics-door-that-moves-only-in-one-direction/1759877/3 "2024-03-18T10:15:52Z")

</div>

> [@Quetzalcodename](#):
>
> If you are trying to prevent a full swing through the frame, have

ok so i have this door  
 ![Screenshot from 2024-03-18 15-09-21](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/c/7/6c7d45500b2addeed9fb3d63b44577302e6b7212.png)  
I have added the physics constraint and it rotates in these two directions  
 ![Screenshot from 2024-03-18 15-13-15](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/7/4/074dcbe650c91829545d4ce877b4fb9a3b4bec18.png)  
 ![Screenshot from 2024-03-18 15-12-45](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/7/b/47bf18e0b90e35ccf48615d9cc61748725991898.png)  
i want it to rotate it in one direction i.e +ve Z right now it rotates on both +ve and -ve Z

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [March 18, 2024, 12:10pm UTC](https://forums.unrealengine.com/t/physics-door-that-moves-only-in-one-direction/1759877/4 "2024-03-18T12:10:14Z")

</div>

- ensure the pivot (hinge) is in the right location (see viewport), adjust it using modelling tools as needed:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/4/8/24808022564870011cb27eb7da6707c00ab8bd1c.jpeg)

Constrain stuff just in case.

- add Physics Constraint component:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/1/b/f1bf044036830323d21070dcb7f44805b41e4cb3.jpeg)

Close enough?

---

<div class="post-metadata">

**Author:** ![GloatingDevil](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/gloatingdevil/32/908576_2.png) [@GloatingDevil](https://forums.unrealengine.com/u/GloatingDevil)\
**Post date:** [March 19, 2024, 4:42am UTC](https://forums.unrealengine.com/t/physics-door-that-moves-only-in-one-direction/1759877/5 "2024-03-19T04:42:21Z")

</div>

yes exactly what i want but im not getting this angular offset in blueprint

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [March 19, 2024, 4:48am UTC](https://forums.unrealengine.com/t/physics-door-that-moves-only-in-one-direction/1759877/6 "2024-03-19T04:48:49Z")

</div>

> [@GloatingDevil](#):
>
> im not getting this angular offset in blueprint

What does it mean you’re not getting it?

---

<div class="post-metadata">

**Author:** ![GloatingDevil](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/gloatingdevil/32/908576_2.png) [@GloatingDevil](https://forums.unrealengine.com/u/GloatingDevil)\
**Post date:** [March 19, 2024, 4:50am UTC](https://forums.unrealengine.com/t/physics-door-that-moves-only-in-one-direction/1759877/7 "2024-03-19T04:50:52Z")

</div>

![Screenshot from 2024-03-19 09-50-09](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/2/6/726be4ed52bdd843d7cf03b9e3e1619ee98c5fee.png)  
there’s no node to add angular offset in blueprint

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [March 19, 2024, 7:10am UTC](https://forums.unrealengine.com/t/physics-door-that-moves-only-in-one-direction/1759877/8 "2024-03-19T07:10:23Z")

</div>

Nodes are context sensitive. Try dragging the wire from the physics constraint’s data pin. The same way you access any other component.

---

<div class="post-metadata">

**Author:** ![GloatingDevil](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/gloatingdevil/32/908576_2.png) [@GloatingDevil](https://forums.unrealengine.com/u/GloatingDevil)\
**Post date:** [March 19, 2024, 8:24am UTC](https://forums.unrealengine.com/t/physics-door-that-moves-only-in-one-direction/1759877/9 "2024-03-19T08:24:42Z")

</div>

i have tried that too still got no result ☹

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [March 19, 2024, 8:55am UTC](https://forums.unrealengine.com/t/physics-door-that-moves-only-in-one-direction/1759877/10 "2024-03-19T08:55:01Z")

</div>

It’s not exposed to BPs then.

> [@Modify Angular Rotation Offset at Runtime](https://forums.unrealengine.com/t/modify-angular-rotation-offset-at-runtime/304164/7):
>
> I would like to know this as well, as I am attempting the exact same thing and encountering the same problem. Edit: Ok the simplest (Blueprint) work around that I found and works for that is just to have a StartingAngle variable like LazyMammal described, and use that to rotate the door with AddRelativeLocation in BeginPlay, (so after the constraint has been initialized). Obviously it’s not the greatest solution, there is unfortunately no ‘preview’ in the editor of your angle unless you create …

---

<div class="post-metadata">

**Author:** ![GloatingDevil](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/gloatingdevil/32/908576_2.png) [@GloatingDevil](https://forums.unrealengine.com/u/GloatingDevil)\
**Post date:** [March 19, 2024, 10:16am UTC](https://forums.unrealengine.com/t/physics-door-that-moves-only-in-one-direction/1759877/11 "2024-03-19T10:16:16Z")

</div>

Okiee Thanks for ur help . Im converting it to c++ its available in c++

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [April 18, 2024, 10:17am UTC](https://forums.unrealengine.com/t/physics-door-that-moves-only-in-one-direction/1759877/12 "2024-04-18T10:17:01Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
