Opening Door with Vive grab component

Hi everyone I would like to open a door with my vive’s controllers.
I’ve setup the door with physic constrain but I can only hit it and it rotate around it axis. I would like to be able to grab the handle and make it follow my controller.

I can’t find a way to do it,

Do you have any idea?

Thanks in advance,

Denis

Hi,

You can add a physic handle component to your door and if you grab the door, connect the physic handle to your static mesh (door).
Then in each event tick (of your door) move the physic handle to your controller (you need to save a reference to your controllers scene component)

This worked fine for me opening a chest.

Br,

Michael

Here you go:

It seems that Grab Component is outdated…
In this case StaticMesh is the cover (with simulated physic).

Hello michael do you have any screenshot of your blueprints?
Thanks in advance :slight_smile:

Thanks a lot for your screenshot! I succeeded making the grab component but I can’t release the door when the button is not pressed anymore. Do you have any idea why?

If I remember correctly, you need to adapt the BP_MotionController - ReleaseActor Function and add the red marked node.
Because in the case you grab the door, the attached Parent is not the motionController but the physichandle.

This is not the most elegant solution, but it works.

Thanks ! It works perfectly now ! :slight_smile:
Can I ask you a last question? I can’t find where to change parameters in my Physic Constraint so my door only open on one side.

Hey, From where you added those Pickup event? I cant find it

I think the pickup event you are talking about is the grab one which is created by default in the VR scene from tom looman

Cant find Event pickup and drop?

You can find it for example when you create a new VR scene in UE4 in the blueprint of the blue cube you can grab.

OK i add the Interface and now find this but the Set Hand cant find only HandMesh but this is not compatible with the Event pickup

Ok tell me what you are trying to achieve and in which context. I don’t get what’s going wrong.

i want make a door and open in vr!

i make a blueprint like the Picture here!

on the Picture is after Event pickup a Hand Variable what is this?

maybe make someone a complete tutorial for open door in vr

Hi Denis,
I am very new to UE and I am having an issue with this also, I have followed the instructions on the 2 screenshots but I am also not able to find the “Hand” variable. Any help on this would be greatly appreciated.
Thank you in advance :slight_smile:

I find it amazing that since June no one has continued this post, thanks for all the help you provided guys but for a begineer in blueprint like me this is not enough to accomplish what you seem to achieved. Could any of you do a step by step tutorial or explain a bit more how to do this please? I´ve been trying for days but I don’t find the solution anyewher and you seem to know it so I would be deeply grateful to anyone that shares any information. thank you!!!

If you could do that I would be very grateful

Ok I will have a look back at my project and try to make a step by step from an empty scene.
I will try to do that this week

Whitch kind of Blueprint do you have? If I make a new BP from Actor class I do not have the event Pickup and the other grab events in the event graph.

Hi all! I’m also trying to create a blueprint that would allow me to open and close the doors. I was hoping Denis that you would have created and posted the step by step process by now. If you have please inform me on where I could find it. Thanks!
I