I'm experimenting with making a physics game where the ball rolls down a structure, and some platforms that it rolls across can be changed or manipulated by pressing buttons. The problem I'm having is that when the button is pressed, the platform it correlates to changes to its set angled on the next frame. This obviously has some effects on how the ball handles the physics of the collision between itself and the moving platform.
Is there a way of controlling how many frames it takes for a platform to move or rotate? What would be the optimal solution to handling moving platforms with physics?
All help appreciated.