I’m trying to build a basic function that will smoothly ice skate the character in a specific direction- in this case I’m just multiplying the character’s facing to make him slide in the direction he’s already facing:
This works, but because I’m just interpolating between two positions, if I do something weird like jump during the motion I end up floating in midair, slowly sliding towards the destination. Is there any way I can modify this so that gravity and physics apply normally, and keeps the player on or close to the ground as they move?