Trying to code wall jump.

Hello. I’m trying to code 3d wall jump and was wondering the basic idea. I’m not looking for a script just wanna know what you’d wanna do. Like set up box colliders? Make a box cast on the sides of you? Raycast? Stuff like that.

I would setup a wall layer and do a raycast with a layermask that only includes that layer. I would also check the normal:

to see if the surface is indeed at the correct angle for a wall jump.

The advantage of a raycast over a collision is that it allows the player to jump even if it’s slightly away from the wall. You can tweak this distance separately from the actual collider.

Ah OK thanks.