VR controller combat

Hi,

I’m trying to make a prototype of sword/weapon fight in VR, but I haven’t found any tutorials about this. Something like VR Boxing.

I need some very simple stuff:

  • the ability to hit the enemy
  • the ability to block the enemy’s attack

I would appreciate any hints, tips or links to useful tutorials how to achieve this. Blueprints preferred.

If you already have the sword set up for the controller then you are half way there. For damage just attach a sphere collision to the sword and off that have on begin overlap or onhit. Cast to the enemy A.i and if true apply damage. For blocking say using a shield again have an sphere collision attach and make it the same size as the shield and have an overlap event cast it to the sword and if true cause no damage.

Great, thanks! :slight_smile: quite simple ^^

I don’t have a sword set up, anything I should know about this?

I agree with Tir na that for a simple setup that should be all you need. For my project I used 2 sockets and do a line trace by channel between them looking for hit actors, off the top of my head I don’t recall necessarily why i went this route vs just a collision sphere/box as I haven’t had time to work on my stuff in quite awhile…:frowning: