Character sliding after jumps

Hi!

I’ve been dealing with a long term problem which I haven’t been able to solve for a month now. I have a first person character which I made from an empty character.

After I land from a jump or fall on landscape or a mesh, my character starts to slide uncontrollably, or gets stuck and I can’t control it’s movement.

This ONLY happens if camera is looking below it’s own location on Z-axis and ALWAYS stops immediately if camera’s view goes above it’s own location on Z-axis.

This problem persists on a packaged version of the project, which my friends tried on their own PC’s.

I have tried

  • Adding horizontal and vertical spring arms to characters camera (no effect in any way)
  • Changing friction settings between 0-5000 (higher friction makes the sliding slower, but it happens nevertheless)
  • Modifying capsule components size
  • Changing walkable floor angle and step height on movement component
  • Increasing linear and angular damping on capsule component

It usually seems like the character “pops up”, just before I gain control of it again. I made a notation on the video, when this happens. This seems to be a collision problem, because touching objects which simulate physics, can also set the character on a sliding mode, which lasts several seconds or until camera’s view is lifted.

Images and a video

Characters movement input

Characters mouse input

128580-mouseinput.jpg

Here’s a video of the problem and image of character settings in the video.

Please ask if you need more material or the project itself. Thank you for your time!

1 Like

Do you have friction settings setup for your materials?

Hmm. I have never seen or heard about material friction settings. Need to look in to it…

For any physical materials

I set a physics material for my landscape material. It has friction set to one and restitution set to zero. It didn’t make any difference.

I am attempting to replicate it based solely on your character setup however I am unable to…is it perhaps a collision issue? Is the ground a landscape actor or a static mesh?

It is a landscape actor, but this slide also happens on meshes which have auto generated collision. For example the house’s floor has just a box collision and I have no problems inside the house, but those Ice blocks have an auto generated collision and problem appears.

I did some more testing and this problem also happens inside the house.

Ok now it makes sense…disable the Use Controller Rotation Pitch in the class defaults of your first person character

1 Like

Yes! That solved the problem. Thank you so much <3

Awesome, don’t forget to mark this as resolved/answered