Playmaker Forum

Playmaker Help & Tips => VR Help => Topic started by: LordHorusNL on November 10, 2016, 02:28:43 PM

Title: HTC Vive Gun slide
Post by: LordHorusNL on November 10, 2016, 02:28:43 PM
Hey guys, i'm trying to make a two handed gun with playmaker similar to onward/H3ver. But i can't seem to figure out how to move the slide/bolt with the controller.

Does anybody have any tips or suggestion on how i could achieve this?

I already have a barebone two handed setup, using the bow template from Sebaslive's toolkit.
Title: Re: HTC Vive Gun slide
Post by: sebaslive on November 15, 2016, 05:21:32 AM
Hey!

The slide part is done in my 3D program and I move it in unity. The boys itself has bones that are moved in game. Reason being that the strong has to look as if it's being pulled back from two parts. If it's a gun that only had one part, check out how the controller grabs the string  and set the limit of pull back to whatever it needs to be. Also the guns part should only move back in z right. Make sure no other axis is being moved on pull. Just remove all that from the bow fsm.

Info is a bit vague but the bow fsm has details where everything goes. I hope this helps!
Title: Re: HTC Vive Gun slide
Post by: LordHorusNL on November 18, 2016, 01:56:36 PM
Thanks for the reply, i figured it out for the most part. i was using the "float clamp" action and this seemed to be broken. So after a quick update it's now working almost the way i want it!

Except when i grab the slide/bolt it always snaps to the position of the controller instead of staying where it is and only updating it's position when i actually move the controller.

Still working on that