So I wanted to make a system where players are able to slide under objects, vault over small ledges, wallrun to different points and can span walls upwards for a certain distance before grabbing the ledge and having the ability to either scoot on ledges or pull themselves up onto ledges.
I do not expect anyone to write a whole system but if you do it would be much appreciated and credit will be given.
I will also accept any links to sources that give details on this topic.
Here’s a more in depth explanation that I would like to provide for those who don’t have a large enough explanation:
-
Spanning walls
If the wall is a certain height (perhaps by scanning the block using a raycast and getting the xyz values from there), then the character will have the ability to run up against the wall and grabbing the ledge. This in turn will start a count down timer which basically represents the duration for how long a player will be able to hold onto a ledge before slipping off. If said ledge is a length, then the player will be able to have the ability upon grabbing the ledge to be able to vault over it. If the ledge has another block in front of the ledge they are holding onto is there, then the player will not be able to climb onto it and will only be able to move side to side or jumping down. If there is just only that one ledge, then the player will be able to climb onto the ledge or still just go around it from side to side if they wish. Finally, if the player wishes to not stay on the ledge, then they can press “SPACE” to jump off.
Another thing that is separate, if the ledge is a certain height, then the player will run up the side for a certain distance, before sliding down the side of the wall.