Prevent (Flying) Character From Sliding Along Surface

Hello,

Does anyone know how to stop a character with a movement component set to “Flying” from sliding across solid surfaces?

When the plane is in the air, it’s fine, but when it collides with my invisible boundaries, it slides like ice.

I believe this behavior is intentional, but I need to deactivate it. I considered setting to “walk” upon collision/overlap, but then my plane would fall out of the air.

This person made this post:

But, for me, it’s insufficient.

BUMP

BUMP

How about reducing it speed close to zero if it still overlaps the wall

2 Likes

Hey, Arodi,

Won’t this cause issues with dodging? The flying character is a plane, and if it can’t move against the wall/ceiling/floor, the player will get hit.

Cuphead figured this out, but I have no idea how to replicate such behavior.

Hey there @Leomerya12! Are you just trying to introduce friction but remain able to maneuver like the aforementioned post?

1 Like

Hello, @SupportiveEntity !

Here’s a video for you and anyone else to see what is happening:

When the plane is in the air, not touching an invisible barrier, no problem, but when it touches that barrier (while the directional up or down button is pressed) it maintains its momentum.

EDIT:

Aaannnddd as I just started explaining, in depth, what I was experiencing, it dawned on me:

Disable “UP” when touching the ceiling and “DOWN” when touching the floor.

I though it slid no matter what, but it only slides when the direction opposite of the force of a barrier is applied.

@Arodi007 , I basically did what you suggested, but only in one cardinal direction.

@SupportiveEntity , I have no idea why friction for flying objects only works in the air. I’m sure there’s a reason, but I do not know what it is. I thought about changing the movement mode to “walking” when touching a barrier, but my plane would fall out of the sky like…

Too soon. Too soon.

2 Likes

Hmm from the video honestly, it look normal to me.
Try to compare with other similar games and play them, maybe you get a hint or something.

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