This only happens in the final build. Everything works fine in the editor and in Standalone mode. But in the final build, the character slides along the ground half a meter below it.
Update: I noticed that if you assemble the build not in “shipping” mode, but in “debug game” or “development”, then sliding works fine.