How do i make my character not fall while wallrunning?

I want to make my character not fall while wallrunning. Like in Ghostrunner. How do i do that

Hey @Aga45678!

Why not give this tutorial a shot? :slight_smile:

Hope that helps! :slight_smile:

There are many ways to do it, the simplest way i can think of would be to simply disable gravity for the actor at the right moment (when vertical movement is near zero) and then nullify any remaining vertical motion.

Then re-enable gravity once the character is no longer in contact with the wall.

How do i nullify any vertical motion I thought about that but I dont know how to do it

Saw that but I already did the whole system only remaining part is this. I don’t want to waste my time watching the whole video

Well, one of the better options imo is to simply skip that step. If you turn off the gravity to when the vertical motion is anywhere between 0 and -1 (still or falling just a little, the reason u can’t just put it exactly on 0 is because the number moves too fast so there’s no guarantee it’ll ever be exactly 0 for any single frame) or something like that, the downward force will be so minimal that the player won’t even be able to notice it.

It wouldn’t be perceivable.

However if that’s not good enough, then you simply do this.

That’ll nullify vertical motion while retaining motion in other directions.

Here are all the commands you need for the full function, disable gravity, nullify vertical motion, and re-enable gravity (according to default settings).

Here you can see me toggling it on and off.

2 Likes

Thanks that’s what I was looking for.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.