SteamVR

SteamVR

SteamVR Workshop
Customize your SteamVR experience by finding new backgrounds, 3D environments, controllers and base station models.
Læs mere
soontekk 1 19. feb. 2019 kl. 11:43
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
< >
Viser 1-7 af 7 kommentarer
Rectus 13 19. feb. 2019 kl. 12:36 
Switch the entity class of the prop to prop_destinations_physics.
soontekk 1 19. feb. 2019 kl. 14:35 
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
Sidst redigeret af soontekk; 19. feb. 2019 kl. 14:47
Rectus 13 19. feb. 2019 kl. 15:11 
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 kl. 15:49 
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 ?
Sidst redigeret af soontekk; 19. feb. 2019 kl. 16:38
Rectus 13 20. feb. 2019 kl. 0:29 
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 kl. 2:49 
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 kl. 3:01 
Ah yeah, I forgot about that part. You are absolutely correct.
< >
Viser 1-7 af 7 kommentarer
Per side: 1530 50

Dato opslået: 19. feb. 2019 kl. 11:43
Indlæg: 7