Hi there!
After updating to 5.7 we noticed some issues with crouching.
I was able to confirm the same issues present themselves also in the contents of the “Mover Examples” Plugin when used on an empty project in an unmodified engine.
At full speed it shows as a small glitch in the camera movement but slowing down the game speed using the slomo cvar or using the rewind debugger it will be pretty clear that when the crouch is toggled the character capsule (and mesh) does the following:
- c1. capsule teleports up : feet in the air
- c2. capsule teleports down : feet in below the ground
- c3. no capsule movement : feet align to the ground
Similarly when un-crouching the situation appears to present itself mirrored
- u1. capsule teleports down : feet below the ground
- u2. capsule teleports up : feet above the ground
- u3. no capsule movement : feet align to the ground
In the attachment a screenshot of each of the above “moments” in the flow captured using the rewind debugger. Each image is named with the matching name above (i.e., c123, u123).
I have not dug deep in the code flow but after a superficial analysis I think that this might be related to the changes to how FStanceModifiers are applied: it seemed to me this was the only relevant change to the crouching flow between 5.6 and 5.7