# Door with physics constraint glitch

**URL:** <https://forums.unrealengine.com/t/door-with-physics-constraint-glitch/473434>\
**Category:** World Creation\
**Tags:** physics-constraint, unreal-engine, Physics, door, question, box-overlap\
**Created:** [October 24, 2020, 5:31pm UTC](https://forums.unrealengine.com/t/door-with-physics-constraint-glitch/473434 "2020-10-24T17:31:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![LemenusTheFirst](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@LemenusTheFirst](https://forums.unrealengine.com/u/LemenusTheFirst)\
**Post date:** [October 24, 2020, 5:31pm UTC](https://forums.unrealengine.com/t/door-with-physics-constraint-glitch/473434/1 "2020-10-24T17:31:49Z")

</div>

**Description of functionality**

I did physics based door with physics constraint, by default it’s angular maximum set to one, when player interact with it, it sets to 90°, to shut it player just need to push it towards it’s frame, closing based on two overlapping boxes, one child of door, another is a child of frame, as soon as they meet each other, angular limit sets back to 1.

**Problem**

When door swings too fast, box components simply ignore each other, i think it’s because they very thin (1 unit), I’ve done them this way because otherwise they meet to early and door visibly snaps to it’s please, which doesn’t look good.

And another problem - if player pushes the door not from it’s front or back but from side, then door for some reason snaps to it’s closed position, it may happen even if player will slightly touch it

---

<div class="post-metadata">

**Author:** ![LemenusTheFirst](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@LemenusTheFirst](https://forums.unrealengine.com/u/LemenusTheFirst)\
**Post date:** [October 26, 2020, 3:03am UTC](https://forums.unrealengine.com/t/door-with-physics-constraint-glitch/473434/2 "2020-10-26T03:03:02Z")

</div>

[Demonstration video](https://youtu.be/mWjxFdW3M6Q)

---

<div class="post-metadata">

**Author:** ![LemenusTheFirst](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@LemenusTheFirst](https://forums.unrealengine.com/u/LemenusTheFirst)\
**Post date:** [October 26, 2020, 3:03am UTC](https://forums.unrealengine.com/t/door-with-physics-constraint-glitch/473434/3 "2020-10-26T03:03:08Z")

</div>

I resolved problem - my mistake, i didn’t done check for overlap propeply

---

<div class="post-metadata">

**Author:** ![Ethel\_Chan](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ethel\_Chan](https://forums.unrealengine.com/u/Ethel_Chan)\
**Post date:** [January 27, 2021, 11:45pm UTC](https://forums.unrealengine.com/t/door-with-physics-constraint-glitch/473434/4 "2021-01-27T23:45:07Z")

</div>

How did you resolve it, do you have like a tutorial on how you did the door physics?
