SteamVR
SteamVR Workshop
Customize your SteamVR experience by finding new backgrounds, 3D environments, controllers and base station models.
了解更多
soontekk 1 2019 年 2 月 19 日 上午 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
< >
正在显示第 1 - 7 条,共 7 条留言
Rectus 13 2019 年 2 月 19 日 下午 12:36 
Switch the entity class of the prop to prop_destinations_physics.
soontekk 1 2019 年 2 月 19 日 下午 2: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
最后由 soontekk 编辑于; 2019 年 2 月 19 日 下午 2:47
Rectus 13 2019 年 2 月 19 日 下午 3: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 2019 年 2 月 19 日 下午 3: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 ?
最后由 soontekk 编辑于; 2019 年 2 月 19 日 下午 4:38
Rectus 13 2019 年 2 月 20 日 上午 12: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 2019 年 2 月 20 日 上午 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 2019 年 2 月 20 日 上午 3:01 
Ah yeah, I forgot about that part. You are absolutely correct.
< >
正在显示第 1 - 7 条,共 7 条留言
每页显示数: 1530 50

发帖日期: 2019 年 2 月 19 日 上午 11:43
回复数: 7