Character climb ledges

Hello. I’m trying to make a character which will be able to climb ledges. I’ve made him hanging on ledges like this (1):

But I have no idea how to move the character to position (2) and play climbing animation correctly. The controller is based on physics.

Usually for canned animations like this it’s best to temporarily turn off the physics (set it to not use gravity) and then enter a coroutine for the period of time while he climbs up that distance.

During the coroutine you can simultaneously play a mantling animation, stepping through a bunch of frames of your sprite with his hands coming down, while moving his position up and then onto the ledge.

Finally at the end of the coroutine, turn the gravity back on and stop driving the position. You might have to also wake up the rigidbody after you finish. I think that’s how I would do it with a physics system involved.