Moving with rotating object

I’m creating a simple platformer. The player is able to move only left and right. So this rotating wheel (think cylinder), is supposed to move the player towards the direction it’s rotating to. So if the wheel is rotating right, the player would move right along with wheel.

I’ve tried making it the child of the wheel but the issue with that is that the player also rotates with the object (player moves with the wheel but also rotates around). Also I can’t walk the opposite way of the rotation.

I guess setting up the wheel as child of your player will do the trick.