x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

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?

Product Version: Not Selected
Tags:
more ▼

asked Apr 27 '14 at 07:37 AM in Using UE4

avatar image

gotgrassct
217 47 62 78

avatar image BiggestSmile Apr 27 '14 at 08:39 AM

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? :)

avatar image gotgrassct Apr 28 '14 at 12:46 AM

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

(comments are locked)
10|2000 characters needed characters left

2 answers: sort voted first

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.

more ▼

answered Jul 24 '18 at 11:48 AM

avatar image

Marko Pollo
1 1

(comments are locked)
10|2000 characters needed characters left

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

more ▼

answered Jul 24 '18 at 07:36 PM

avatar image

Katianie
151 27 20 29

(comments are locked)
10|2000 characters needed characters left
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question