So you’ve all seen those really epic games like Battlefield 4 and Dying Light and all those other open world style games where there’s free running and climbing, I really like those games, but I keep wondering about how you would implement it correctly.
So the most obvious bit for me is when you jump you’ll have a ray cast detecting where you are on the ground and then another raycast ( perhaps? ) pointing to the ledge to detect whether you’re close enough to grab it. However, what about the stuff at the end? Would I be right in thinking that an animation just wouldn’t take care of this? You’d need to have some kind of code to detect that the player is actually climbing onto the ledge and then have them transform onto the top and they’ll be on the surface and of course you need to be able to have the player connected to the ledge the whole time the animation is playing.
It all looks quite complicated but I’d be pretty interested in finding out more information on it, however as usual with some of the more popular stuff there’s a bunch of asset store spam people are trying to hijack the conversations with instead of providing some actual explanations about how you’d do it all with just code.