This has me stumped. I can attach a gun mesh to the controllers and in the Vive Pawn create a working line trace from the gun meshes themselves but how would I be able to pick up a working gun BP and shoot it. Normally you would assign it to the player characters hand socket in the mesh but the vive pawn controller doesn't have a mesh so what is the work around for this?
Announcement
Collapse
No announcement yet.
Pick up and fire gun
Collapse
X
-
-
Hey tcla75, I was able to do this by using AttachToComponent and providing a reference to a point I wanted to attach the object to. In this case, I added a Arrow Component as a child of my controller.
To switch items I created a Interactable base class, and everytime I switch weapons/items I spawn a new Interactable, and call AttachToComponent on that item.
Comment
-
Try Michael Allar https://twitter.com/MichaelAllar
https://www.youtube.com/c/awesomeallar
lot's of good dev twitch feeds from him here
he made a basketball, shotgun thing... might give ya a few pointers... if not it's a hell of a watch anyway...
his twitch feed..
https://www.twitch.tv/awesomeallar
Comment
Comment