Short answer: it's done through collision detection and character states.
Short answer: it's done through collision detection and character states.
Thanks Ludus ....
Do you have any related tutorial ?? I started learning Mecanim in unity . Hoping I am on right path .
It would first involve doing a sort of collision detection to check if the edge is within grabbing range (in some games this is only done if the "climbing" button or direction is held). If the check is successful, the character would go into a "climbing state" (disabling actions that could be performed in the walking/jumping state) and snap onto the ledge based on its position. During this climbing state the character would be restricted to a few actions such as pulling himself up, dropping down, or moving along the edge. Animations would be handled similar to any other kind of action that involves an animation.
Short answer: it's done through collision detection and character state