I would like to model a Ball and Wheel system in order to allow my students to be able to design PID controllers to control such a system (control the wheel position/velocity in order for the ball to remain in the top of the wheel). In case the controller is not able to control the system correctly, then the ball should roll along the wheel until a position on which the ball will leave the wheel and fall to the ground.
My question is the following: is it possible to simulate this system using SimMechanics?
I have studied the SimMechanics documentation and I was considering modeling the wheel as a cylinder, the ball as a sphere and then define the contact among them as a SimMechanics “Point-Curve Constraint” block, on which the curve spline would represent the external surface of the wheel.
Can this be done? Is this the correct way simulating this type of contact among bodies?
Thanks for your help.