Ah alright this works on all framerates I’ve tested it out on. Thanks for informing me about the physics aswell I wasn’t too sure about that.
Only problem with this method of sliding is that your player can slide through walls. That’s why I initially went with adding velocity.
So with the physics interfering with DeltaTime then, is there nothing I can do? How do other games go about adding sliding mechanics? A lot of platformer games that have been made on unreal engine manage to deal with this issue so I’m not sure how they get a smooth sliding experience even on lower frames?