So I can walk on walls and when I jump again I want to jump off the wall to jump on another wall, for example.
I have already done two methods:
The first method just pushes me straight off the wall, which looks pretty dumb and isn't right either:
normal = $LeftRayCast.get_collision_normal()
velocity += normal * 5000
velocity += Vector3.UP * 5000
The second method doesn't really repel me at all but just gives me a speed boost along the wall
var normal = $LeftRayCast.get_collision_normal()
var bounce = 5
velocity = (velocity - 2 * velocity.dot(normal) * normal) * bounce
I found a video that shows relatively exactly what I would like to have. Unfortunately there is no code for this. But so you can better imagine what I want.