Search Unity

Attack on Titan Tribute Game grapple mechanic

Discussion in 'General Discussion' started by WolfPl0x, Mar 27, 2021.

  1. WolfPl0x

    WolfPl0x

    Joined:
    Mar 25, 2021
    Posts:
    1
    I recently came upon this fanmade game AoTTG (Attack on Titan Tribute Game) made by Feng Lee. I gave it a go and the grapple mechanic is insanely smooth and satisfying. Kinda made me curious as to what went into making it. Does anyone have any ideas on how to replicate it?
     
  2. Murgilod

    Murgilod

    Joined:
    Nov 12, 2013
    Posts:
    10,144
    What have you tried and what hasn't worked?
     
  3. Arowx

    Arowx

    Joined:
    Nov 12, 2009
    Posts:
    8,194
    In theory it would could just be a pivot transform and physics hinge that your player can:
    • launch at something using physics or a raycast shot.
    • reel your player towards or away by adjusting the players distance from the pivot (adjusting the players velocity for physics).
    • then when gravity is applied to the hinge will limit the drop to a swing.
    With some line rendering and maybe even rope physics* it could also look great and allow for more complex swing and wrapping mechanics.

    * Just multiple physics hinges along a line.
     
    MadeFromPolygons and Ryiah like this.
  4. GimmyDev

    GimmyDev

    Joined:
    Oct 9, 2021
    Posts:
    160