How can i open a door with a Physics handle?

I Have the door setup with physics, everytime i push the door it opens. i would like to Grab the door with the left mouse button and move the mouse foward to push the door open. how does it work? how can i do it with a physics handle?

So what’s the problem? Push it while moving mouse and grab when required, everything is in the question… I assume you want a complete solution to be made for you? :slight_smile:

I Don’t wanna push the door with my body, i want it to be locked when i try to do that. I Want to be able to go up to the door, hold the mouse button to unlock the door, and just move my mouse foward OPEN the door. like in the game Amnesia

I know it’s 4 years ago, but it is still impossible to find information on this question. Did you ever find a way to do it? If so would love to know how.

When dealing with grabbing things there are different ways to do it. You will need to enable physics on the item you want to grab if you want to use physics handle. This means that it will act like an object that…well has physics , weight, sway, etc. It can work well, but for my game, I wanted to be able to pick up items and not have physics effect it. If you do it that way, you need to attach the item to the hand.

To do it with a Physics handle, here is a tutorial: A new, community-hosted Unreal Engine Wiki - Announcements - Unreal Engine Forums
Same things apply if you want to transpose this to C++.

Someone named Mitchemmc made these examples for interacting with different objects. This is all in blueprint logic but is great. GitHub - mitchemmc/VRContentExamples: Unreal Engine 4 community VR content examples

If you want to do it with physics (mostly) disabled (the way I’m doing it). This allows for grabbing to feel different and more “solid”. I also re-created the VRContentExamples in C++ for my project. Here is a link to the sample: http://katianie.com/SourceCode/Unreal/VRGrabbing.zip