You can use a point surface joint to connect a point from a body to the surface of another body.
The point can move along the surface, and rotate freely in all directions.