# The interaction of the physics of the door and the player

**URL:** <https://forums.unrealengine.com/t/the-interaction-of-the-physics-of-the-door-and-the-player/1760519>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine, Physics, question\
**Created:** [March 18, 2024, 2:41pm UTC](https://forums.unrealengine.com/t/the-interaction-of-the-physics-of-the-door-and-the-player/1760519 "2024-03-18T14:41:30Z")\
**Posts on this page:** 1\
**Showing post:** 3

<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, 3:12pm UTC](https://forums.unrealengine.com/t/the-interaction-of-the-physics-of-the-door-and-the-player/1760519/3 "2024-03-18T15:12:32Z")

</div>

> unpleasant physics problem

You’d need to decide whether you want a Physically Accurate interaction or Set Relative Rotation. Combining both may yield undesirable results, as you’ve observed. Ignore the shooting / directional nature of it, but do note the setup:

> [@Physics Door that moves only in one direction!?](https://forums.unrealengine.com/t/physics-door-that-moves-only-in-one-direction/1759877/4):
>
> ensure the pivot (hinge) is in the right location (see viewport), adjust it using modelling tools as needed: Constrain stuff just in case. add Physics Constraint component: Close enough?

If I wanted to pry the door open, I’d try it like so in the player controller:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/2/c/e2caf2e2c5810664d9f92eeadc351a6989b57589.png)

We apply actual physical force to the door:

It should play nicely with the player’s capsule interaction (just moving forward) since the **C** haracter **M** ovement **C** omponent understands physics:

Which can be further tuned in the character (or, to a lesser extent, in the door itself):

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/b/8/2b83a3439e865ab8c21867f51f579c7728b41206.png)

And if the door must push the player away, it can apply extra force back at the player, and the CMC will respect that (to an extent).

* * *

> The problem is that when the player stands and opens the door, she interacts with him extremely poorly, pushes through, and teleports him. If the player is on the move, then everything is fine. I have not found any guides on this topic

This, again, stems from mixing 2 movement methods. Setting Rotation may attempt to force geometry intersection. The character has a de-penetration mechanism that will cause displacement in case the collision capsule gets stuck. You could try Adding Rotation instead which may work better but then again, it’s unclear whether you want this or the actual interaction of physics mentioned in the title.

---

_[View the full topic](https://forums.unrealengine.com/t/the-interaction-of-the-physics-of-the-door-and-the-player/1760519)._
