+1 vote

I haven't found a good solution to this anywhere, does anyone know a way using moveandslide or moveandslidewithsnap that I can stop my player from moving up a wall?

A wall is just something my player can move on normally, isonwall will return true.

If I slide into a wall at the moment, and it's not completely vertical (around 55 degrees), my player will begin to slide up the wall, before moving down again.

What I want to do is to slide along the wall without going up it at all when I walk into it.

Any help would be appreciated.

in Engine by (399 points)

1 Answer

0 votes

I don't have slopes, but my animated creatures would sometimes collide such that one could rise into the air, and stay there, moving around above the floor. To prevent this, I ticked the 'Y Motion' of the 'Axis Lock' Property of their KinematicBody3D, and they no longer float up. I don't know if this would solve your issue; try it, perhaps..?


by (14 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.