Is there a way to disable the player automatically rotating with the corner of a wall/part whilst sliding along it?

When you slide against a part or wall in studio and you reach the corner of it, your character kinda automatically rotates around it, I want to disallow that in some way and make it work kind of like when I shiftlock in the videos attached below

I have tried disabling the AutoRotate property of the humanoid, but it still allows for the rotation around the corners

Rotating around the corner slightly without shiftlock

Constantly going in a straight line with shiftlock

There is not an easy, native way to do this, as it’s based off of roblox physics

You could recreate this by using a local RenderStepped loop to change the orientation of the HumanoidRootPart every frame, instead of relying on physics