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!

--

--

--

I am passonate on learning to program and use Unity to become a skillful Unity Developer

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

How to Hire a ColdFusion Software Development Company without Freaking Out (9 best practices)

OpsInit: Configuring Crontab With Ansible

cron

How to Create and Use Alias Command for NEAR

iOS 11, Privacy and Single Sign On

Reef Chain Mainnet Canary Version is Now Live

Powering past code review: How to make your code as easy as possible to review

Python Sets are Underrated

The Top 10 Best Gaming PCs Under $1000 (and which one is the #1 top rated machine for the money!)

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Tyler Smallwood

Tyler Smallwood

I am passonate on learning to program and use Unity to become a skillful Unity Developer

More from Medium

Slick Orbital Camera Movements using Free Look Cameras

Unity Dev Blog: How To Use Post Processing in Unity — It’s like an Instagram filter for your game!

Adding a wave system to our prototype

Physics 101 — Simulating Physics in Unity