Pickup objects with HTC vive VR controller

What would be the methodology for picking something up like a torch with the Vive? I can pick things up with my FPS character using physics handles, but I would want to pick up an object and orient it specifically if I was holding it with the controller? perhaps using sockets? I don’t have the Vive yet so can’t really experiment with this.


Got this working reasonably with attach to actor, seem to able to pick up some physics objects though and not others.

Hey Squirrel. Have you found anything out yet?

hello… using the attachtocomponent or attach to actor function works pretty well, you have to ensure that all your assets have the correct orientation and root position though, I’ve been using the 3d model of the vive controller as the target mesh to attach to.
If you have a skeleton mesh, you can attach to a specific socket but I’ve had some trouble with that.
With this method the object actually snaps to the correct holding position, I think this is usually desirable, although it doesn’t always look very natural.
You can use the detach actor function to drop, whilst also re-enabling physics so it will fall.

I’m curious, where did you get the 3D model of the Vive controller?

It is a SteamVR resource. The location for mine is:
C:\Program Files (x86)\Steam\steamapps\common\SteamVR\resources\rendermodels\vr_controller_vive_1_5

I found the material didn’t import, if this happens for you then you need to also import ‘onepointfive_texture.png’ and ‘onepointfive_spec.png’, open the material in UE4 the mesh is using and set ‘onepointfive_texture’ as ‘Base Color’ and ‘onepointfive_spec’ as ‘Specular’.

This is how I’m also doing it; you may want to put this down as an answer rather than a comment.