SteamVR

SteamVR

SteamVR Workshop
Customize your SteamVR experience by finding new backgrounds, 3D environments, controllers and base station models.
Learn More
Mantas T 1 31 Mar, 2020 @ 2:34am
regarding physics
hello. i wanted to make such things as drawers (in tables, cupboards etc.) and cupboard doors. what would be a way to do it? also want i make a handle of say a bucket. so that i can hold a handle and the object would hang from it.. is it possible?
< >
Showing 1-2 of 2 comments
Rectus 13 31 Mar, 2020 @ 3:42am 
There are a few ways of doing it, although none of them are all that good.

One is to use one of the physics constraint entities, although it can result in glitchy physics.
I use a hinge constriant in my island map to attach a handle to the lantern inside the outhouse.

Another is to use a point_value_reampper entity, but that doesn't add physics to the effed, just direct movement.
https://developer.valvesoftware.com/wiki/SteamVR/Environments/Advanced_Interaction

I also scripted an (almost) physics enabled door that can be pulled by the handle to open it. It should be possible to modify the script to work on things like drawers too. The downside is that only pulling the handle will move it.

Sources for my island map is here if you want to see how the lantern and doors are set up.
https://github.com/Rectus/destinations_range/tree/master/island
Mantas T 1 31 Mar, 2020 @ 5:33am 
thank you!
< >
Showing 1-2 of 2 comments
Per page: 1530 50