Thank you for any advice in advance
Not sure how to want the hinge movement but check the limit distance/angle mate option.
Deepak is correct, that is how I have done it in the past, although it can be tricky. Under mechanical mates, there is an actual hinge mate that does just that. I found this link showing hwo it works
Tutorial - Mating Hinge in SolidWorks? - GrabCAD
Remember that you most likely will have to make the hinge assembly 'Flexible' to see the motion in the next level assembly. Right click on the assembly in the tree, select the Properties button and check the Flexible radio button. In this case the ball will have full freedom of motion. You may need to apply limits to the assembly but that is beyond this simple discussion.
Retrieving data ...