When the player is on a horizontally-moving platform, account for the platform's velocity when moving or stopping the player body.