playMaker

Author Topic: Firing 3d projectile in VR  (Read 732 times)

daniellogin

  • Full Member
  • ***
  • Posts: 200
    • View Profile
Firing 3d projectile in VR
« on: March 02, 2018, 10:43:04 AM »
Does anyone know of a guide, or can someone explain a way I can fire a 3d projectile using Play Maker? The trick is that it's for VR, so you can't align the fire position with the camera.

I have got a raycast 'gun' system going. That's good for a very fast (in reality, instant) bullet, but now I'm wanting to make a relatively slow dart gun. It's not crucial that the projectile drops over distance, but it does need to be the actual 3d prefab that moves and collides (or at least triggers an event at the moment the 3d object seems to collide).

I have seen one guide that says just spawn an object with a force FSM in it, but the guide didn't say how to make it move in the exact position the gun barrel is facing. It was just static firing exactly on one set axis. Another guide was for a FPS, but it used the camera direction to set the projectile rotation (so obviously no good for VR).
« Last Edit: March 02, 2018, 10:45:19 AM by daniellogin »