Moving platform - with player

Hello, I have "moving platform" in my game, which is being moved in right/left direction constantly.

Obviously, player may try to jump on this platform, "as a means of locomotion 🙂 "

But here the simple problem, if player won't follow platform position, he will simply falls down.

Let me describe it, a little bit better with following image:

Image

- green rectangle is a moving platform (moving right/left) - Its a KINEMATIC BODY
- red square is a player - Its a DYNAMIC BODY

Now what I'm trying to achieve, is that player should move automatically with this platform, but I have really no idea how.

I would be grateful if someone may help me
bump
my ideas:
make friction extremely high on platform?
make a sensor, check if the player is on the platform. If he is, add the platform's speed to the player's speed 🙂
you'll definitely want a higher friction then for the player and/or box object

Original thread: https://box2d.org/forum/viewtopic.php?t=7895