I am making a platforming game and already made a ground detection script for jumping, but wanted to add more possibilities for levels and better gameplay. Does anyone know how to detect if the player is touching a vertical wall?
It’s pretty much the same as checking if the player is touching the floor. You may want to add some extra logic to check if it’s a wall suitable for wall running such as checking the collision normal.
Ok. I’ll give it a try!
But how ? can you show me the code?