Just Cause Grappling Hook
Description
This project was an attempt to recreate the functionality of the grappling hook from the Just Cause series. It was created in Unity for my Scripting In Games class and was inspired by videos from the Mix & Jam YouTube channel.
To tackle this project, I broke down all the steps I would need to take in a planning document and worked on implementing them one by one.
- I created a basic third person movement and camera controller, using animations from Mixamo to cover movements.
- I built a test room using ProBuilder and created various different physics objects with different masses.
- I remade the animated crosshair as closely as I could to match the original in Just Cause 3 using Photoshop.
- Using C# I built a basic grapple attach mechanic. A raycast is created whenever the player selects the first and second valid grapple points by holding down the grapple button and a line is drawn between the two. If only one point is attached the line is drawn to the hook itself.
- Any two objects attached are then connected with a spring joint which prevents the distance between the objects from being greater than when they were first attached.
- I then added in a cable retraction feature, which shortens the length of the cable while a button is held, drawing the objects together.
This project was a ton of fun to make and it gave me plenty of other ideas for game mechanics I'd like to create. I plan on creating a tutorial video on how to make this similar to the way Mix & Jam does it so that hopefully others can learn from my experience.