# A few questions about VR doors.

I am trying to make doors in VR. Needless to say, very small numbers of tutorials “out there”. But, they all have something in common: They completely disregard physics and move on to make their own “fake” physics simulation.

That results in the door being able to move as long as we hold it. You can’t pull/push while grabbing and let go and then see the door open or close all the way. This is all the best these tutorials have to show. Is there a way to use physics with doors and cabinets in VR? If not, why? Job Simulator has doors that react to pulling/pushing and letting go, Walking Dead Saints and Sinners (made with Unreal) also.

Why can’t we grab physics objects? There is one tutorial where a physics door is opened by pushing, but not grabbing. Please help me figure this out!

I’m still a noob but I use this code on my Quest and it works fine mayby it’s of some use for you

So you want physically accurate doors that react to pulling and pushing? Is that right?

You should be using PhysicsConstraint. They allow for all kinds of movement. You just have to limit the movement to some axis. There is an introduction tutorial for it (link).

I tried using physics, but you can only push to open the door this way, not grab and pull. VR seems to be officially avoiding physics when objects are grabbed, this is what I’m investigating.

So, I run so test, and all you need is a door that is attached to some frame, that acts as a point of rotation, with physics constraint. Look at this tutorial. Then just change a few settings on the constraint. I didn’t use an angular motor, the linear limit was set to limited (not locked) and contact distance with restitution set to 1. Without it, you can bend the door down when you are not pushing straight on in. You can set it up as you like. The video shows you the basics. When you want to pull you can use collision of the handle to pull or use another physics constraint and connect the door with your hand.

This is exactly the tutorial I followed and tried to use with VR, with no luck. If you did try it in VR and worked, can you please show a pic of the Blueprints so everyone following this post can see?

Sorry that it took a while. I am preparing for high school exams.
Here is a screenshot with all the changed variables in the physics constraint. Don’t forget to turn on the physics simulation on the door piece and add collision with the proper setup of the channel to your VR controllers. It is important to set the tolerance to zero otherwise you can push from the top of the doors or use friction and push the doors down which is unnatural. If you want your doors to swing less or return to posïtion you can follow the tutorial.

I hope this is helpful enough.

Was it helpful? Are you satisfied with the result? If you are, please, close this thread so that others know that it was solved.