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?
asked Apr 27 '14 at 07:37 AM in Using UE4
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.
answered Jul 24 '18 at 11:48 AM
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: https://wiki.unrealengine.com/Pick_Up_Physics_Object_Tutorial 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. https://github.com/mitchemmc/VRContentExamples
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
answered Jul 24 '18 at 07:36 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here