Home Unity

Grapple Hook/Rope Swing...?

Hi,

I'm looking to implement grapple-hook or a ring swing in my current project and wondered if anyone knew of any tutorials etc?

I've searched everywhere (even on subscribed training websites) and found little to nothing.

Cheers

Replies

  • MikeF
    Offline / Send Message
    MikeF polycounter lvl 20
    i'm thinking it would work in a similar fashion to the hookshot in the zelda series?

    if so, i'd do something like this:

    Raycast from player position to target
    Store raycast hit in a Vector3
    transform.translate from current position towards Vector3 * speed
  • Lamont
    Online / Send Message
    Lamont polycounter lvl 15
    What you need to do is:

    Raycast to hook point.
    Using that transform/vector3 as your center
    Use that radius to do an arch from point A to B on the circle you created to define the arch.
    start your motion along the arch from A to B.
  • David Wakelin
    As silly as it sounds.... I've followed many tutorials and understand what I'm doing; I also understand what Lamont is stating I need to write up in code... its just writing the code I have trouble with :)

    I'm a 3D artist at heart :P
Sign In or Register to comment.