Day 103: Creating A Ledge Grab in Unity Part 1
Objective: Create Ledge Grab system.
To get started with system we will need to add a couple of triggers into the game to see if the player is close enough to catch the ledge. We’ll add a cube as a child to the player character. As well as to add a Rigidbody.
This should be position at around where the player’s hands will be when they are hanging from the ledge.
Now that the player is set up, let’s move to the ledge. The ledge will need a box trigger as well. This will check to see if the players ledge checker is inside and if it is move on to the code section. This section and placement of all the box colliders is based off the model. Some small adjustments will need to be made to fit your game.
Next will be to download the animations for ledge handing and ledge climbing from Mixamo.com. When we download them we need to make sure we download FBX for Unity.
After your animations are downloaded, pull into Unity. Select it and set the rig to Humanoid.
Now that it is saved as a Humanoid, we will go into the FBX file and duplicate the animation file.
We will drag the Hanging animation and the climb up animation to the animator. We will want to move from jumping to hanging idle and after a key press start climbing.
Now that we have set everything up, we will start working on the code portion of it. We will look into this tomorrow.
Thank you for reading and have a wonderful day!