I have finally implemented the wall riding mechanic

So a long time has passed since I wrote here. Last time I showed you that I hade just started with the grappling hook. I am now happy to announce that I have finally implemented the wall riding as well.

It works very similar to Lucios wall riding, in that you attach to the surface while jumping and holding space and as soon as you release, you jump into the direction you want to move towards.

I use a special collision sphere around the player that looks for surfaces with a certain layer called "Wall", after it has found a surface, it looks for the closest point to that surface and uses that to get the normal of the surface at that particular position. This is used to set the forward velocity along the surface.

This video show what it looked like while testing the normal of the surface.



This video show the final result.


Kommentarer

Populära inlägg i den här bloggen

Final Post

I have implemented a first version of the Grappling Hook.