Creating a Ledge Grab System (part 3)

Snapping in place and Pulling your character up.

Scripting the Snap:

In the ledge script we need to make an serialized field variable to handle the vector3 position we want for our player to snap too. We need to serialized it so we can access this data within the Inspector for ease of adjustment later on.

Adding an Extra Animation:

As an extra step, I personally decided to add in an extra animation during the jumping and ledge hang, and that is the bumping of the character when making first contact.

The end result should look like this.

--

--

A Designer, an Illustrator and a massive tech geek aspiring to become a professional Unity Developer.

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
Simon Truong

A Designer, an Illustrator and a massive tech geek aspiring to become a professional Unity Developer.