HI @Anonymous,
I see that you are visiting as a new member to the AutoCAD forum. Welcome to the Autodesk Community!
I would start by switching to a 3D workspace
Capture.PNG
Now, create a SPHERE
Next, create a CYLINDER and push it partially into the sphere and use UNION to combine them
Capture1.PNG
Now, you can make the socket portion. You can use another cylinder to do this or a box, or any other solid shape.
Now create the socket or void in the last cylinder using another sphere and by using SUBTRACT
Now you can place the ball part into the socket
Capture2.PNG
I realize this is over-simplified but perhaps it will get you started.
If you have more exacting requirements and need extra help or resources, please add a post.
Please select the Accept as Solution button if my post solves your issue or answers your question.
John Vellek
Join the Autodesk Customer Council - Interact with developers, provide feedback on current and future software releases, and beta test the latest software!
Autodesk Knowledge Network | Autodesk Account | Product Feedback