Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

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.


Product Version: UE 4.10
more ▼

asked Mar 10 '16 at 03:17 PM in Blueprint Scripting

avatar image

6 1 2 2

avatar image Apachesquirrel Mar 14 '16 at 04:03 PM

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

avatar image Shanowzer Apr 12 '16 at 06:52 AM

Hey Squirrel. Have you found anything out yet?

avatar image Apachesquirrel Apr 12 '16 at 08:12 AM

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.

avatar image uw19 Apr 14 '16 at 06:51 PM

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

avatar image Furinyx Apr 15 '16 at 09:15 AM

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'.

avatar image Furinyx Apr 15 '16 at 09:17 AM

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

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question