How do I make VR hands hold a gun?
Can anyone point me in the direction on how to make the VR hands in the VR template hold a pistol like in Robo Recall?
asked Jun 04 '17 at 08:22 AM in VR
You can implement this in a few ways. The easiest is to change the VR hands mesh into a the gun mesh, however this means you no longer can see the players hand. The way I implemented this was to make an actor called Gun, and add the Pickup Actor Interface to it. When the gun actor is picked up use the AttachToComponent on the gun actor and attach it to the Hand mesh. You'll want to make a custom socket to make sure it attaches to the right place. To get this looking really nice you'll need to animate the hand to be holding the gun properly, along with making the trigger pull work, however this should be enough to get you started. Good luck!
Please make sure to accept this answer if I helped, thanks :)
answered Jun 04 '17 at 08:55 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here