Rotating cube when player jump on it ...

Hi everyone i’m trying to make a simple 3d game (with a 2d prospective) where you are a ball and you need to reach the end of the level without falling down.
This is a simple level i created :

How can you see the pink cube is where the player (the white ball) spawn and the white platforms are the obstacles,i need to rotate them when the player jump on them like in the example below

The platforms should rotate on the y axis (the green dot)

I’ve tryed with “simulate physics” and then “lock y axis” but it dosen’t work when the player jump on it,the cube falls down

You can cheat/make your own physics if the movement of the platform is going to be very predictable.

Going with the built in physx is buggy/a major hassle from what ive read