SteamVR

SteamVR

SteamVR Workshop
Customize your SteamVR experience by finding new backgrounds, 3D environments, controllers and base station models.
Learn More
soontekk 1 19 Feb, 2019 @ 11:43am
Picking up things and throwing them ?
This will be a biggie i've been looking forwar to for some time.
Actually interacting with objects in my scene.
I am not a coder or scripter so i hope this can be done easily.
Cheers
< >
Showing 1-7 of 7 comments
Rectus 13 19 Feb, 2019 @ 12:36pm 
Switch the entity class of the prop to prop_destinations_physics.
soontekk 1 19 Feb, 2019 @ 2:35pm 
Wow, awesome.
For now it falls through the floor unless i set it asleep.
How do i define the map floor as the physics ground plane ?
Probably a different way so you cant pick up the world im guessing.

edit: i could add a collision mesh to my floor ... :)
working, learning this stuff 12h a day is taking its toll it seems
Last edited by soontekk; 19 Feb, 2019 @ 2:47pm
Rectus 13 19 Feb, 2019 @ 3:11pm 
Is your floor a Hammer mesh or a prop? Hammer meshes should get collision automatiaclly unless you turn it off in their properties. Prop models need collision built on them from the model editor.
soontekk 1 19 Feb, 2019 @ 3:49pm 
It is currently a static prop with a collision mesh but maybe it should be different ?

I also created a tool (axe).
Is there a way for it to fall when i release it instead of just staying in the air where i left it ?
Last edited by soontekk; 19 Feb, 2019 @ 4:38pm
Rectus 13 20 Feb, 2019 @ 12:29am 
Hmm, not sure what the issue could be. Could you post pictures of the collision meshes of both models?

Tools are designed to work with a script. I'm not sure if that is affecting how it behaves when you drop it.
soontekk 1 20 Feb, 2019 @ 2:49am 
Hey Rectus,
A good night's sleep sometimes helps (after being on this for 16h a day the last few)..
Seems i lacked some basic collision mesh knowledge.
Using anything other than the convexified hull results in the dynaprop freezing in place.
I changed the tools colmesh to convex and instant fixed !
The world ground mesh has a non convex collision mesh which seems to be the point.
Static= non convex and movable items= convex.
Rectus 13 20 Feb, 2019 @ 3:01am 
Ah yeah, I forgot about that part. You are absolutely correct.
< >
Showing 1-7 of 7 comments
Per page: 1530 50