I’m trying to adjust the player’s collision cylinder when they start swimming.
I’m doing it like this when they enter water:
The trouble is, once changed, it doesn’t affect the pawn’s location until they move. So when I exit the water (and increase the cylinder height back to normal), they player will briefly fall before it updates the pawn location, causing glitchy movement.
An easy way to see this is to just add an exec function that doubles the player collision height. Then use it in game, then walk forward. The player will fall before the correct pawn location is updated.
I would like to be able to smoothly interpolate the collision cylinder height and have the pawn’s location smoothly change.
Any ideas? Cheers