(VR) Until You Fall's Meele Combat System how to build?

Hi All,
Currently working on building a melee combat system that takes inspriation from the VR Game Until you Fall. Example here:

We are creating scripted boss fights and instead of the player improv fighting, we are going to be using the blocking mechanics from Until You Fall which is a line appears on the screen and you have to put your weapon in that line for the enemy attack to successfully block.
For attacking we are going to be doing something similar to when the enemy is in a stunned statis mode in the game where an attack opportunity target circle appears informing the player what direction to slash in with their weapon to successfully complete an attack.

Looking for help on creating the blocking mechanic and the attack opportunity mechanic

Thank you in advance.

best,

Phil

It’s just:

  • a long piece of graphics rotated to some chosen angle.

  • convert the orientation of the controller into the camera-local rotation angle

  • decide when the “hit” comes (timing countdown)

  • compare angle of graphic to angle of controller, adjust damage accordingly.

Everything else is just how to present it: Sprites? UI? 3D objects? in world canvas? Line Renderers?

Thank you for the help!

1 Like

Can you please show me how you would do this in code?