Community
VRED Forum
Welcome to Autodesk’s VRED Forums. Share your knowledge, ask questions, and explore popular VRED topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How can I grab a door handle in VR and move a door?

5 REPLIES 5
Reply
Message 1 of 6
m.maks
335 Views, 5 Replies

How can I grab a door handle in VR and move a door?

In the video I made you see the door moving using a touch sensor and animation. I would like now to move the door by grabing the door handle and choosing how far I close it and using collision so the doors can go through each other.

 

Interaction with the product in VR is whats important for me.

If you have any tips how to do this or if thats even possible in Vred Pro let me know.

Tags (1)
5 REPLIES 5
Message 2 of 6

Hi, i think it is not an easy task in Vred...

There is no way (out of the box) to avoid transformations on some axis (a door should rotate only on an axis, and never move on x,y,z)

And there is no way to setup collision in the UI.

So you have to setup everything in python.

You will have to write some code to manage:

  1. Collision: you have some python example here: https://help.autodesk.com/view/VREDPRODUCTS/2024/ENU/?query=collision
  2. Constraints (to manage the hand\controller interaction with the door): https://help.autodesk.com/view/VREDPRODUCTS/2024/ENU/?query=constraints
  3. Some code to avoid unwanted rotation and door translations

 

Best

Chris

Christian Garimberti
Technical Manager and Visualization Enthusiast
Qs Informatica S.r.l. | Qs Infor S.r.l. | My Website
Facebook | Instagram | Youtube | LinkedIn

EESignature

Message 3 of 6

Hi Christian,

 

Thanks for the tips. I meant a sliding door, so it is moving on a plane from left to right and back(like in the video). The only thing i would like to add is collision and VR doorhandle grabbing. 

 

I see that it will take a lot of coding skill to do this and I have none. So I will keep it as it is for now. 

 

Thank you so much!

Message 4 of 6
fangty
in reply to: m.maks

I have already implemented this feature and it is very user-friendly. If you need it, please contact me.

Message 5 of 6
m.maks
in reply to: fangty

If you could please tell me how to implement it, or send me the code would be amazing! I have worked now with Vred for a couple of months, but I have no expreience with coding.

 

 

Message 6 of 6
fangty
in reply to: m.maks

I just watched your video. There is no directly available code for your needs, but the function is completely achievable and only requires customized development.
The function we implemented before was the switch of the car door, but the principle is similar.
1. The blue hand of leapmotion shown in the video can be judged by gestures whether it is grasped or not.
2. Use the vrcollision method to determine whether the hand and the door handle collide.
3. By calculating the displacement in a certain axis direction, move the door while moving the hand.

Are you willing to pay for custom development, or do you just want to know the ideas and APIs to try developing yourself?

@fangty - this post is being edited to remove PII.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report