playMaker

Author Topic: HTC Vive Gun slide  (Read 8707 times)

LordHorusNL

  • Beta Group
  • Full Member
  • *
  • Posts: 227
HTC Vive Gun slide
« on: November 10, 2016, 04: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.

sebaslive

  • Hero Member
  • *****
  • Posts: 572
    • Frame Tale Studios
Re: HTC Vive Gun slide
« Reply #1 on: November 15, 2016, 07: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!
All my VR games use Steam VR Playmaker Toolkit: http://u3d.as/u20
And Oculus Touch Playmaker Toolkit: http://u3d.as/QT5


Follow me @sebasRez

LordHorusNL

  • Beta Group
  • Full Member
  • *
  • Posts: 227
Re: HTC Vive Gun slide
« Reply #2 on: November 18, 2016, 03: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