How to make wall jump with lerp ?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By kareem_farrag

How to make wall jump with lerp ?

Can walls jump?

SteveSmith | 2023-02-09 15:44

No I mean the player making a jump on the wall

kareem_farrag | 2023-02-09 18:17

:bust_in_silhouette: Reply From: cassie

Your question is vague, but I’ll take a stab at it:

You make a jump with lerp. Then, separately you make a wall jump that uses the normal jump, or a specialized wall jump that’s also lerp’d.

how to make a jump with lerp ?
most of videos on youtube don’t explain a wall jump with jumping animation and wall jump delay

kareem_farrag | 2023-02-09 18:15

first result when googling “Godot wall jump”. I think he uses a raycast to check for walls, but the rest of it is general enough to fit your use-case as far as I can tell.

What I mean by this is to apply your interpolation separately from the action. I use a “gravity” which applies delta time so my jump is just changing the y velocity, which calculates to a different value each frame.

cassie | 2023-02-09 18:23